public object Get(GetChannelGroups request)
        {
            var channelGroups = new List <ChannelGroup>();

            try
            {
                channelGroups = Plugin.TvProxy.GetChannelGroups(new CancellationToken());
            }
            catch (ServiceAuthenticationException)
            {
                // Do nothing, allow an empty list to be passed out
            }
            catch (Exception exception)
            {
                Plugin.Logger.ErrorException("There was an issue retrieving channel groups", exception);
            }

            return(channelGroups);
        }
Example #2
0
        public object Get(GetChannelGroups request)
        {
            var channelGroups = new List <string>();

            try
            {
                channelGroups = Plugin.TvProxy.GetChannelGroups(new CancellationToken()).RootGroups;
                foreach (var name in channelGroups)
                {
                    Plugin.Logger.Info("Kanalgruppenname: {0}", name);
                }
            }
            catch (ServiceAuthenticationException)
            {
                // Do nothing, allow an empty list to be passed out
            }
            catch (Exception exception)
            {
                Plugin.Logger.ErrorException("There was an issue retrieving the channel groups", exception);
            }

            return(channelGroups);
        }
Example #3
0
 public void GetChannelGroupsTest()
 {
     GetChannelGroups request = new GetChannelGroups();
     var result = JsonConvert.DeserializeObject <KodiJSON.PVR.Response.GetChannelGroupsResponse>(ExecuteTest.GetResponse(request));
 }