Files
QControlKit/QSharp/QResponse.cs
T
2020-06-08 14:11:54 -05:00

23 lines
594 B
C#

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 "";
}
}
}