コード例 #1
0
        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();
        }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 public CursorResult()
 {
     this.Extra = new CursorExtraResult();
 }
コード例 #4
0
 public CursorResult()
 {
     this.Extra = new CursorExtraResult();
 }