public void GetChannelProperty_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetChannelProperty_args args = new GetChannelProperty_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetChannelProperty_result result = new GetChannelProperty_result(); result.Success = iface_.GetChannelProperty(args.ChannelID, args.Key); oprot.WriteMessageBegin(new TMessage("GetChannelProperty", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public string recv_GetChannelProperty() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetChannelProperty_result result = new GetChannelProperty_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetChannelProperty failed: unknown result"); }