public string Format(ItemReward reward) { var sb = new StringBuilder(); if (reward.Coins.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emotecoins")} {reward.Coins.Value.ToString()} "); } if (reward.Tokens.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emotetokens")} {reward.Tokens.Value.ToString()} "); } if (reward.Chests.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emotechest")} {reward.Chests.Value.ToString()} "); } if (reward.Spheres.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emotesphere")} {reward.Spheres.Value.ToString()} "); } if (reward.Capsules.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emotecapsule")} {reward.Capsules.Value.ToString()} "); } if (reward.Tickets.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emoteticket")} {reward.Tickets.Value.ToString()} "); } if (reward.DoubleExps.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emote2exp")} {reward.DoubleExps.Value.ToString()} "); } if (reward.BotRespects.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emoterespect")} {reward.BotRespects.Value.ToString()} "); } if (reward.Rewinds.HasValue) { sb.Append($"{emoteService.GetEmoteString("$emoterewind")} {reward.Rewinds.Value.ToString()} "); } return(sb.ToString().TrimEnd()); }
public string FormatName(StoreItem item) { return($"{item.Name}{emoteService.GetEmoteString("$emotetran")}"); }