Ejemplo n.º 1
0
        internal Revision(JObject obj)
        {
            if (obj == null)
                throw new ArgumentNullException("obj");

            Created = obj.DateValueStrict("ctime");
            BodyTranslated = obj.Value<string>("body_tgt");
        }
Ejemplo n.º 2
0
        internal AccountStats(JObject obj)
        {
            if (obj == null)
                throw new ArgumentNullException("obj");

            CreditsSpent = obj.DecValueStrict("credits_spent");
            Currency = obj.Value<string>("currency");
            UserSince = obj.DateValueStrict("user_since");
        }
Ejemplo n.º 3
0
        internal TimestampedId(JObject obj, string idProp, string createdProp)
        {
            if (obj == null)
                throw new ArgumentNullException("obj");
            
            if (idProp == null)
                throw new ArgumentNullException("idProp");
            
            if (createdProp == null)
                throw new ArgumentNullException("createdProp");

            Id = obj.IntValueStrict(idProp);
            Created = obj.DateValueStrict(createdProp);
        }
Ejemplo n.º 4
0
 internal Comment(JObject obj)
 {
     Body = obj.Value<string>("body");
     Author = obj.Value<string>("author").ToAuthorType();
     Created = obj.DateValueStrict("ctime");
 }