Beispiel #1
0
        private async Task loadStatus()
        {
            // http://message.bilibili.com/api/notify/query.replyme.list.do?captcha=e91dd48f73e11db1cc7c3b729865e572&data_type=1
            Count count = await ContentServ.GetCountAsync();

            if (count != null)
            {
                h0.Text += count.Reply_me == "0" ? string.Empty : count.Reply_me;
                h1.Text += count.Chat_me == "0" ? string.Empty : count.Chat_me;
                h2.Text += count.Notify_me == "0" ? string.Empty : count.Notify_me;
                int a = int.Parse(count.At_me) + int.Parse(count.Praise_me);
                h3.Text += a == 0 ? string.Empty : a.ToString();
            }
        }