public bool recv_PressButton() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } PressButton_result result = new PressButton_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "PressButton failed: unknown result"); }
public void PressButton_Process(int seqid, TProtocol iprot, TProtocol oprot) { PressButton_args args = new PressButton_args(); args.Read(iprot); iprot.ReadMessageEnd(); PressButton_result result = new PressButton_result(); result.Success = iface_.PressButton(args._id); oprot.WriteMessageBegin(new TMessage("PressButton", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }