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