Ejemplo n.º 1
0
        public static (string emoji, string activityTitle) GetActivityInfo(DestinyActivityModeType activityType, string activityName)
        {
            string emoji, activityTitle;

            switch (activityType)
            {
            case Raid:
            {
                var raid = GetRaidType(activityName ?? string.Empty);
                emoji         = Emoji.GetActivityRaidEmoji(raid);
                activityTitle = Translation.ActivityRaidTypes[raid] ?? activityName ?? Translation.ActivityNames[activityType][0];
            }
            break;

            default:
            {
                emoji         = Emoji.GetActivityEmoji(activityType);
                activityTitle = activityName ?? Translation.ActivityNames[activityType][0];
            }
            break;
            }

            return(emoji, activityTitle);
        }