public void GetChannels_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetChannels_args args = new GetChannels_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetChannels_result result = new GetChannels_result(); result.Success = iface_.GetChannels(args.ComponentID); oprot.WriteMessageBegin(new TMessage("GetChannels", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List<string> recv_GetChannels() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetChannels_result result = new GetChannels_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetChannels failed: unknown result"); }