diff --git a/QControlKit/Constants/QDefines.cs b/QControlKit/Constants/QDefines.cs index eb42654..9d74ff7 100644 --- a/QControlKit/Constants/QDefines.cs +++ b/QControlKit/Constants/QDefines.cs @@ -231,10 +231,18 @@ //Light Cue Keys //Fade Cue Keys //Network Cue Keys + public const string CustomString = "customString"; + public const string MessageType = "messageType"; + public const string QLabCommand = "qlabCommand"; + public const string QLabCueNumber = "qlabCueNumber"; + public const string QLabCueParameters = "qlabCueParameters"; + public const string RawString = "rawString"; + public const string UdpString = "udpString"; + //MIDI Cue Keys //Midi File Cue Keys - public const string Patch = "patch"; //Implement on Audio Cue and Video Cue + public const string Patch = "patch"; //Implement on Audio Cue and Video Cue and Network Cue public const string Rate = "rate"; //Implement on Audio Cue and Video Cue //Devamp Cue Keys @@ -283,7 +291,7 @@ public const string Default = "default"; //is this even an option? } - enum QTriggerAction + public enum QTriggerAction { Nothing = 0, Panics = 1, @@ -292,20 +300,20 @@ Hard_Stops_And_Restarts = 4 } - enum QFadeMode + public enum QFadeMode { Absolute = 0, Relative = 1 } - enum QContinueMode + public enum QContinueMode { NoContinue = 0, AutoContinue = 1, AutoFollow = 2 } - enum QMSCCommand + public enum QMSCCommand { GO = 1, STOP = 2, @@ -335,7 +343,7 @@ CLOSE_CUE_PATH = 30, } - enum QMSCCommandFormat + public enum QMSCCommandFormat { All_Types = 127, Lighting_General = 1, @@ -395,14 +403,14 @@ Smoke_Pots = 100 } - enum QNetworkMessageType + public enum QNetworkMessageType { QLAB = 1, OSC = 2, UDP = 3 } - enum QNetworkQLabCommand + public enum QNetworkQLabCommand { start = 1, stop = 2, @@ -427,7 +435,7 @@ colorName = 21 } - enum QRotationType + public enum QRotationType { THREE_D = 0, X = 1, @@ -435,7 +443,7 @@ Z = 3 } - enum QVideoEffect + public enum QVideoEffect { Color_Controls = 1, Exposure = 2, diff --git a/QControlKit/Cue/QNetworkCue.cs b/QControlKit/Cue/QNetworkCue.cs new file mode 100644 index 0000000..a081895 --- /dev/null +++ b/QControlKit/Cue/QNetworkCue.cs @@ -0,0 +1,104 @@ +using QControlKit.Constants; + +namespace QControlKit.Cue +{ + public class QNetworkCue : QCue + { + public string customString + { + get + { + return propertyForKey(QOSCKey.CustomString).ToString(); + } + set + { + setProperty(value, QOSCKey.CustomString); + } + } + + public QNetworkMessageType messageType + { + get + { + return (QNetworkMessageType)propertyForKey(QOSCKey.MessageType); + } + set + { + setProperty(value, QOSCKey.MessageType); + } + } + + public QNetworkQLabCommand qlabCommand + { + get + { + return (QNetworkQLabCommand)propertyForKey(QOSCKey.QLabCommand); + } + set + { + setProperty(value, QOSCKey.QLabCommand); + } + } + + public int patch + { + get + { + return (int)propertyForKey(QOSCKey.Patch); + } + set + { + setProperty(value, QOSCKey.Patch); + } + } + + public string qlabCueNumber + { + get + { + return propertyForKey(QOSCKey.QLabCueNumber).ToString(); + } + set + { + setProperty(value, QOSCKey.QLabCueNumber); + } + } + + public string qlabCueParameters + { + get + { + return propertyForKey(QOSCKey.QLabCueParameters).ToString(); + } + set + { + setProperty(value, QOSCKey.QLabCueParameters); + } + } + + public string rawString + { + get + { + return propertyForKey(QOSCKey.RawString).ToString(); + } + set + { + setProperty(value, QOSCKey.RawString); + } + } + + public string udpString + { + get + { + return propertyForKey(QOSCKey.UdpString).ToString(); + } + set + { + setProperty(value, QOSCKey.UdpString); + } + } + + } +}