Exemplo n.º 1
0
        public static string GetCharacterAvatar(string characterId, CharacterAvatarSize size = CharacterAvatarSize.Two_Fifty_Six)
        {
            string avatarUri = "images/guest.png";

            if (!string.IsNullOrEmpty(characterId))
            {
                avatarUri = $"https://image.eveonline.com/Character/{characterId}_{(int)size}.jpg";
            }

            return(avatarUri);
        }
Exemplo n.º 2
0
        public static Uri GetCharacterAvatar(string characterId, CharacterAvatarSize size = CharacterAvatarSize.Two_Fifty_Six)
        {
            Uri avatarUri = new Uri($"https://image.eveonline.com/Character/{characterId}_{(int)size}.jpg");

            return(avatarUri);
        }