Exemplo n.º 1
0
 private async Task GetSubscriberEmotes()
 {
     if (await NetUtills.GetJsonUrl(SubscriberEmotesUrl + _streamer.Id) is JObject res)
     {
         foreach (var emote in res["emotes"])
         {
             _emotes.Add(emote["code"].ToString());
             Console.WriteLine(emote["code"].ToString());
         }
     }
 }
Exemplo n.º 2
0
 private async Task GetFfzEmotes()
 {
     if (await NetUtills.GetJsonUrl(FfzUrl + _streamer.Name.ToLower()) is JObject res)
     {
         var id = res["room"]["set"].ToString();
         foreach (var emote in res["sets"][id]["emoticons"])
         {
             _emotes.Add(emote["name"].ToString());
             Console.WriteLine(emote["name"].ToString());
         }
     }
 }