Beispiel #1
0
 public Verb(JObject jobj)
 {
     if (jobj["id"] != null)
     {
         Id = new Uri(jobj.Value <string>("id"));
     }
     if (jobj["display"] != null)
     {
         Display = (LanguageMap)jobj.Value <JObject>("display");
     }
 }
 public InteractionComponent(JObject jobj)
 {
     if (jobj["id"] != null)
     {
         id = jobj.Value <String>("id");
     }
     if (jobj["description"] != null)
     {
         description = (LanguageMap)jobj.Value <JObject>("description");
     }
 }
Beispiel #3
0
 public Verb(JObject jobj)
 {
     if (jobj["id"] != null)
     {
         id = new Uri(jobj.Value<String>("id"));
     }
     if (jobj["display"] != null)
     {
         display = (LanguageMap)jobj.Value<JObject>("display");
     }
 }
        public InteractionComponent(JObject jobj)
        {
            if (jobj["id"] != null)
            {
                id = jobj.Value<String>("id");
            }
            if (jobj["description"] != null)
            {
                description = (LanguageMap)jobj.Value<JObject>("description");
            }
 
        }
 public void TestEmptyCtr()
 {
     LanguageMap obj = new LanguageMap();
     Assert.IsInstanceOf<LanguageMap>(obj);
 }
Beispiel #6
0
 public Verb(Uri uri, string defaultLanguage, string defaultTerm)
 {
     id      = uri;
     display = new LanguageMap();
     display.Add(defaultLanguage, defaultTerm);
 }