public SeasonSuggest(IJson item) { Position = (uint)(item.GetValue("position").ToLong()); if (item.Contains("title")) { Title = item.GetValue("title").ToString(); } else { Title = null; } Keyword = item.GetValue("keyword").ToString(); Cover = Regex.Unescape("https:" + item.GetValue("Cover").ToString()); Uri = Regex.Unescape(item.GetValue("uri").ToString()); Ptime = item.GetValue("ptime").ToLong(); SeasonTypeName = item.GetValue("season_type_name").ToString(); Area = item.GetValue("area").ToString(); if (item.Contains("label")) { Label = item.GetValue("label").ToString(); } else { Label = null; } }
public Suggest(IJson item) { Position = (uint)item.GetValue("position").ToLong(); if (item.Contains("title")) { Title = item.GetValue("title").ToString(); } else { Title = null; } Keyword = item.GetValue("keyword").ToString(); if (item.Contains("sug_type")) { Type = item.GetValue("sug_type").ToString(); } else { Type = null; } }
public Video(IJson json) { Pic = "https:" + Regex.Unescape(json.GetValue("pic").ToString()); Title = System.Net.WebUtility.HtmlDecode(Regex.Unescape(json.GetValue("title").ToString())); Play = json.GetValue("play").ToLong(); if (json.Contains("pubdate")) { Pubdate = json.GetValue("pubdate").ToLong(); } else { Pubdate = json.GetValue("created").ToLong(); } Author = Regex.Unescape(json.GetValue("author").ToString()); Aid = json.GetValue("aid").ToLong(); }