internal static RestReaction Create(Model model) { IEmote emote; if (model.Emoji.Id.HasValue) { emote = new Emote(model.Emoji.Id.Value, model.Emoji.Name); } else { emote = new Emoji(model.Emoji.Name); } return(new RestReaction(emote, model.Count, model.Me)); }
internal static RestReaction Create(Model model) { return(new RestReaction(new Emoji(model.Emoji.Id, model.Emoji.Name), model.Count, model.Me)); }