mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-19 14:14:22 +00:00
Initial check-in of module qController
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Newtonsoft.Json.Linq;
|
||||
namespace qController
|
||||
{
|
||||
public class QCue
|
||||
{
|
||||
public string number;
|
||||
public string uniqueID;
|
||||
public bool flagged;
|
||||
public string listName;
|
||||
public string type;
|
||||
public string colorName;
|
||||
public string name;
|
||||
public bool armed;
|
||||
|
||||
public QCue(JObject json){
|
||||
//Console.WriteLine(json);
|
||||
number = (string)json.GetValue("number");
|
||||
uniqueID = (string)json.GetValue("uniqueID");
|
||||
flagged = (bool)json.GetValue("flagged");
|
||||
listName = (string)json.GetValue("listName");
|
||||
type = (string)json.GetValue("type");
|
||||
colorName = (string)json.GetValue("colorName");
|
||||
name = (string)json.GetValue("name");
|
||||
armed = (bool)json.GetValue("armed");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
namespace qController
|
||||
{
|
||||
public class QGroupCue : QCue
|
||||
{
|
||||
|
||||
public QGroupCue(JObject json) : base(json)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user