Пример #1
0
        public static string Url(string clanTag)
        {
            if (Clash.TryFormatTag(clanTag, out string?formattedTag) == false)
            {
                throw new InvalidTagException(clanTag);
            }

            return($"clans/{Uri.EscapeDataString(formattedTag)}/currentwar/leaguegroup");
        }
Пример #2
0
        public static string Url(string villageTag)
        {
            if (Clash.TryFormatTag(villageTag, out string formattedTag) == false)
            {
                throw new InvalidTagException(villageTag);
            }

            return($"players/{Uri.EscapeDataString(formattedTag)}");
        }