Ejemplo n.º 1
0
 public string GetUrlFromTag(string tag)
 {
     if (Members.TryGetValue(tag, out string url) ||
         Promotables.TryGetValue(tag, out url) ||
         Watchers.TryGetValue(tag, out url))
     {
         return(url);
     }
     return(null);
 }
Ejemplo n.º 2
0
 public DynamicJsonValue ToJson()
 {
     return(new DynamicJsonValue
     {
         [nameof(Members)] = new DynamicJsonArray(Members.Select(x => x.ToJson())),
         [nameof(Promotables)] = new DynamicJsonArray(Promotables.Select(x => x.ToJson())),
         [nameof(Rehabs)] = new DynamicJsonArray(Rehabs.Select(x => x.ToJson())),
         [nameof(Status)] = DynamicJsonValue.Convert(Status)
     });
 }
Ejemplo n.º 3
0
 public bool Contains(string node)
 {
     return(Members.ContainsKey(node) || Promotables.ContainsKey(node) || Watchers.ContainsKey(node));
 }