Пример #1
0
 public ObjectType Deserialize(JObject ot)
 {
     return(new ObjectType(
                ot["key"].ToObject <string>(),
                ot["description"].ToObject <string>(),
                SerializerUtils.JArrayToList <string>((JArray)ot["objectAttributesKeys"])
                ));
 }
Пример #2
0
 public EventType Deserialize(JObject et)
 {
     return(new EventType(
                et["key"].ToObject <string>(),
                et["description"].ToObject <string>(),
                et["origin"].ToObject <string>(),
                SerializerUtils.JArrayToList <string>((JArray)et["timeseriesKeys"])
                ));
 }
Пример #3
0
 public Timeseries Deserialize(JObject rawTs)
 {
     return(new Timeseries(
                rawTs["key"].ToObject <string>(),
                rawTs["displayName"].ToObject <string>(),
                rawTs["description"].ToObject <string>(),
                rawTs["type"]["highLevelType"].ToObject <string>(),
                SerializerUtils.JArrayToList <string>((JArray)rawTs["eventTypeKeys"])
                ));
 }
Пример #4
0
 public ObjectAttribute Deserialize(JObject obj)
 {
     return(new ObjectAttribute(
                obj["key"].ToObject <string>(),
                obj["displayName"].ToObject <string>(),
                obj["description"].ToObject <string>(),
                obj["type"]["highLevelType"].ToObject <string>(),
                obj["type"]["containerType"].ToObject <string>(),
                SerializerUtils.JArrayToList <string>((JArray)obj["objectTypeKeys"])
                ));
 }