This commit is contained in:
2019-07-17 13:57:15 -05:00
parent 4938a0a0b3
commit 0848336987
30 changed files with 64 additions and 120 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace qController
{
public class QCue
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
namespace qController
{
@@ -5,13 +5,14 @@ using System.Collections.Generic;
namespace qController
{
public class QWorkSpace
public class QWorkspace
{
public string status { get; set; }
public List<QCueList> data { get; set; }
public string workspace_id { get; set; }
public string address { get; set; }
public bool IsPopulated { get; set; }
public QCue GetCue(string cue_id)
{
foreach (var cueList in data)
@@ -61,23 +62,6 @@ namespace qController
}
}
public QCue GetEmptyGroup()
{
foreach (var cueList in data)
{
foreach (var cue in cueList.cues)
{
if (cue.type == "Group" && cue.cues == null)
{
Console.WriteLine("Next Group Cue Found");
return cue;
}
}
}
IsPopulated = true;
return null;
}
public bool CheckPopulated()
{
for (int i = 0; i < data.Count; i++)
@@ -1,8 +1,7 @@
//General information about a QLab Workspace
using System;
namespace qController
{
public class QInfo
public class QWorkspaceInfo
{
public string version { get; set; }
public string displayName { get; set; }