Exemple #1
0
 internal virtual void Update(Model model)
 {
     Prefix      = model.Prefix;
     Backgrounds = model.Backgrounds.ToArray();
     Scales      = model.Scales.ToArray();
     States      = model.States.ToArray();
     UpdatedAt   = model.UpdatedAt;
     Type        = model.Type;
     Tiers       = model.Tiers.Select(x =>
     {
         var cheer = new RestCheer(Client, x.Id);
         cheer.Update(x);
         return(cheer);
     }).ToArray();
 }
Exemple #2
0
 internal RestCheerInfo(BaseTwitchClient client, Model model)
 {
     Client = client;
     Update(model);
 }