Example #1
0
        public void UndeployChannels(IEnumerable<string> channelIds)
        {
            var request = CreateRequest().ForOperation(Operations.Engine.UndeplyChannels);

            request.AddPostData("channelIds", channelIds.ToXmlCollection());
            request.Execute();
        }
        public IEnumerable<Channel> GetChannels(IEnumerable<string> channelIds)
        {
            if (Session.IsMirthVersion(MirthBaseVersion.V2x))
                return channelIds.Select(GetChannel).ToList();

            var request = CreateRequest().ForOperation(Operations.Channels.GetChannel);
            request.AddPostData("channelIds", channelIds.ToXmlCollection("set"));

            var response = request.Execute();
            return response.Content.ToObject<ChannelList>().Channels;
        }