Exemple #1
0
        public static List <Country> GetCountryListFromUri(string uri)
        {
            Dictionary <string, Country[]> countries_by_region = JSONClient.GetJSONResponse <Dictionary <string, Country[]> >(
                UrlBuilder.BuildWithBasePrefix(uri), JSONClient.empty_request);
            List <Country> countries = new List <Country>();

            foreach (Country[] region_countries in countries_by_region.Values)
            {
                countries.AddRange(region_countries);
            }
            return(countries);
        }
 public static SDChannelList GetChannelListByLineupUri(string lineupuri)
 {
     return(JSONClient.GetJSONResponse <SDChannelList>(
                UrlBuilder.BuildWithBasePrefix(lineupuri), JSONClient.empty_request,
                SDTokenManager.token_manager.token));
 }