Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
            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;
                }
            }
Exemplo n.º 3
0
 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();
 }