예제 #1
0
        public IEnumerable <string> GetSubscribedChannelsByDeviceId(string deviceId)
        {
            var client   = new ChannelsService.ServiceClient();
            var channels = client.GetSubscribedChannelIds(deviceId);

            return(channels.ToList());
        }
예제 #2
0
        public IEnumerable <Channel> GetChannels()
        {
            var client = new ChannelsService.ServiceClient();

            var channelsWcf = client.GetChannels();

            return(channelsWcf.Select(c => new Channel
            {
                Id = c.Id,
                Name = c.Name,
                Position = c.Position
            }));
        }