internal static RestCheer Create(BaseRestClient client, Model model) { var entity = new RestCheer(client, model.Id); entity.Update(model); return(entity); }
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(); }