Exemple #1
0
        public async Task <HttpResponseMessage> GetChannelListAsync(string localeInfo, Guid headendId)
        {
            CQSLineupRequestQuery query = new CQSLineupRequestQuery();
            var request = new HttpRequestMessage(HttpMethod.Get,
                                                 $"epg/{localeInfo}/lineups/{headendId}/channels");

            request.Headers.Add(Headers);
            request.AddQueryParameter(query.GetQuery());

            var response = await HttpClient.SendAsync(request);

            return(response);
        }
Exemple #2
0
        public void GetChannelList(string localeInfo, Guid headendId)
        {
            CQSLineupRequestQuery query   = new CQSLineupRequestQuery();
            RestRequestEx         request = new RestRequestEx(
                $"epg/{localeInfo}/lineups/{headendId}/channels", Method.GET);

            request.AddHeaders(Headers);
            request.AddQueryParameters(query.GetQuery());

            IRestResponse response = HttpClient.Execute(request);

            Console.WriteLine(response.Content);
        }