Ejemplo n.º 1
0
        private static List <string> GetCountriesList()
        {
            RequestToUri requestToUri = new RequestToUri(new RestClient("https://raw.githubusercontent.com"));

            dynamic jobject = requestToUri.GetDeserealizeObject(UriConst.mCountriesUri);
            var     list    = new List <string>();

            foreach (dynamic keys in jobject)
            {
                list.Add(keys.cca2.ToString());
            }

            return(list);
        }
Ejemplo n.º 2
0
        private static List <string> GetCurrencyList()
        {
            RequestToUri requestToUri = new RequestToUri(new RestClient("https://core.telegram.org"));

            dynamic jobject = requestToUri.GetDeserealizeObject(UriConst.mCurencyUri);
            var     list    = new List <string>();

            foreach (dynamic keys in jobject)
            {
                list.Add(keys.Name.ToString());
            }

            return(list);
        }