public ChallengeModeGroupMember(JObject GroupMemberObject)
 {
     if (GroupMemberObject["character"] != null && GroupMemberObject["character"].HasValues)
     {
         GroupMember = new Character(JObject.Parse(GroupMemberObject["character"].ToString()));
     }
     if (GroupMemberObject["spec"] != null && GroupMemberObject["spec"].HasValues)
     {
         CharacterSpec = new Specialization(JObject.Parse(GroupMemberObject["spec"].ToString()));
     }
 }
Beispiel #2
0
 public Talent(JObject rawData)
 {
     if (rawData["tier"] != null)
     {
         Tier = int.Parse(rawData["tier"].ToString());
     }
     if (rawData["column"] != null)
     {
         Column = int.Parse(rawData["column"].ToString());
     }
     if (rawData["spell"] != null)
     {
         Spell = new Spell(JObject.Parse(rawData["spell"].ToString()));
     }
     if (rawData["spec"] != null)
     {
         Specialization = new Specialization(JObject.Parse(rawData["spec"].ToString()));
     }
 }