Beispiel #1
0
 private TwitterMediaFormats(JObject obj) : base(obj)
 {
     Small  = GetMediaFormatByAlias(obj, "small");
     Thumb  = GetMediaFormatByAlias(obj, "thumb");
     Medium = GetMediaFormatByAlias(obj, "medium");
     Large  = GetMediaFormatByAlias(obj, "large");
 }
Beispiel #2
0
 private static TwitterMediaFormat GetMediaFormatByAlias(JObject parent, string alias)
 {
     return(parent.GetObject(alias, x => TwitterMediaFormat.Parse(alias, x)));
 }