public Activity(JObject jobj)
 {
     if (jobj["id"] != null)
     {
         id = new Uri(jobj.Value <String>("id"));
     }
     if (jobj["definition"] != null)
     {
         definition = (ActivityDefinition)jobj.Value <JObject>("definition");
     }
 }
Beispiel #2
0
 public Activity(JObject jobj)
 {
     if (jobj["id"] != null)
     {
         id = new Uri(jobj.Value<String>("id"));
     }
     if (jobj["definition"] != null)
     {
         definition = (ActivityDefinition)jobj.Value<JObject>("definition");
     }
 }
Beispiel #3
0
 public Activity(JObject jobj)
 {
     if (jobj["id"] != null)
     {
         string idFromJSON = jobj.Value<String>("id");
         Uri uri = new Uri(idFromJSON);
         id = idFromJSON;
     }
     if (jobj["definition"] != null)
     {
         definition = (ActivityDefinition)jobj.Value<JObject>("definition");
     }
 }
Beispiel #4
0
 public Activity(JObject jobj)
 {
     if (jobj["id"] != null)
     {
         string idFromJSON = jobj.Value <String>("id");
         Uri    uri        = new Uri(idFromJSON);
         id = idFromJSON;
     }
     if (jobj["definition"] != null)
     {
         definition = (ActivityDefinition)jobj.Value <JObject>("definition");
     }
 }