Ejemplo n.º 1
0
 /// <summary>Constructor</summary>
 /// <param name="json">json object to parse into a Config</param>
 public static Config Parse(JObject json)
 {
     Config c = new Config();
     c.Option = ConfigOption.Parse((JObject)json["options"]);
     c.Context = ConfigContext.Parse((JObject)json["context"]);
     c.ID = (string)json["id"];
     return c;
 }
Ejemplo n.º 2
0
 /// <summary>Constructor</summary>
 /// <param name="json">json object to parse into a Config</param>
 public static Config Parse(JObject json)
 {
     var c = new Config
     {
         JsonFromResponse = json,
         Option = ConfigOption.Parse((JObject)json["options"]),
         Context = ConfigContext.Parse((JObject)json["context"]),
         ID = (string)json["id"],
     };
     return c;
 }