public bool recv_BeginControllerCommand() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } BeginControllerCommand_result result = new BeginControllerCommand_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "BeginControllerCommand failed: unknown result"); }
public void BeginControllerCommand_Process(int seqid, TProtocol iprot, TProtocol oprot) { BeginControllerCommand_args args = new BeginControllerCommand_args(); args.Read(iprot); iprot.ReadMessageEnd(); BeginControllerCommand_result result = new BeginControllerCommand_result(); result.Success = iface_.BeginControllerCommand(args._homeId, args._command, args._highPower, args._nodeId, args._arg); oprot.WriteMessageBegin(new TMessage("BeginControllerCommand", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }