Exemple #1
0
        ///<summary> </summary>
        ///<param name="champID"></param>
        ///<param name="lang"> The language the response will be returned in  </param>
        public List <SkinDetails> GetChampionSkins(Champion.ID champID, LanguageCode lang)
        {
            CheckSessionLife();
            const string action     = "getchampionskins";
            var          _signature = GetMD5Hash($"{devID}{action}{authKey}{timeStamp}");

            return(Deserialization <List <SkinDetails> >($"{action}{responseFormat}/{devID}/{_signature}/{_session.session_id}/{timeStamp}/{(int)champID}/{(int)lang}"));
        }
Exemple #2
0
            public static string IDParse(Champion.ID champ)
            {
                var str = champ.ToString();

                if (str == ID.Mal_Damba.ToString())
                {
                    str = str.Replace("_", "'");
                }
                else if (str.Contains("_"))
                {
                    str = str.Replace("_", " ");
                }

                return(str);
            }