Initial Commit

This commit is contained in:
2020-06-08 14:11:54 -05:00
commit 830e905300
24 changed files with 2129 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Text.RegularExpressions;
namespace QSharp
{
public class QResponse
{
private const string WORKSPACES_REGEX = @"/workspaces";
public string status { get; set; }
public string address { get; set; }
public object[] data { get; set; }
public string getReplyType()
{
Console.WriteLine($"QRESPONSE - Address to match: '{address}'");
Match m = Regex.Match(address, WORKSPACES_REGEX);
if (m.Success)
return "WORKSPACES";
return "";
}
}
}