internal override void SetFromJsonTextReader(string name, JsonToken token, object value) { base.SetFromJsonTextReader(name, token, value); if (name == "extra") this.Extra = (value as JObject).ToObject<CursorExtraResult>(); if (name == "hasMore" && token == JsonToken.Boolean) this.HasMore = Convert.ToBoolean(value); if (name == "count" && token == JsonToken.Integer) this.Count = Convert.ToInt32(value); if (name == "id" && token == JsonToken.String) this.Id = value.ToString(); }
internal override void SetFromJsonTextReader(string name, JsonToken token, object value) { base.SetFromJsonTextReader(name, token, value); if (name == "extra") { this.Extra = (value as JObject).ToObject <CursorExtraResult>(); } if (name == "hasMore" && token == JsonToken.Boolean) { this.HasMore = Convert.ToBoolean(value); } if (name == "count" && token == JsonToken.Integer) { this.Count = Convert.ToInt32(value); } if (name == "id" && token == JsonToken.String) { this.Id = value.ToString(); } }
public CursorResult() { this.Extra = new CursorExtraResult(); }