mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-18 05:34:16 +00:00
Cleanup
This commit is contained in:
@@ -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
-2
@@ -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; }
|
||||
Reference in New Issue
Block a user