コード例 #1
0
ファイル: RemoteManager.cs プロジェクト: OpenZWave/Thrift4OZW
 public int recv_GetValueMin()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetValueMin_result result = new GetValueMin_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetValueMin failed: unknown result");
 }
コード例 #2
0
ファイル: RemoteManager.cs プロジェクト: OpenZWave/Thrift4OZW
 public void GetValueMin_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetValueMin_args args = new GetValueMin_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetValueMin_result result = new GetValueMin_result();
   result.Success = iface_.GetValueMin(args._id);
   oprot.WriteMessageBegin(new TMessage("GetValueMin", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }