public bool Unserialize(JsonReader reader) { while (reader.Read()) { switch (reader.TokenType) { case JsonToken.PropertyName: if (reader.Value.Equals("groupInfo")) { GroupInfo = (GroupInfo)JsonTools.GetNextObject(reader, false, typeof(GroupInfo)); } else if (reader.Value.Equals("marchedType")) { MarchedType = JsonTools.GetNextInt(reader); } else if (reader.Value.Equals("marchedMembers")) { MarchedMembers = JsonTools.GetNextStringList(reader, false); } else { } break; case JsonToken.EndObject: return(true); } } return(false); }
public bool Unserialize(JsonReader reader) { while (reader.Read()) { switch (reader.TokenType) { case JsonToken.PropertyName: if (reader.Value.Equals("memberCount")) { MemberCount = JsonTools.GetNextInt(reader); } else if (reader.Value.Equals("members")) { Members = JsonTools.GetNextStringList(reader, false); } else { } break; case JsonToken.EndObject: return(true); } } return(false); }