Пример #1
0
 public Bool_Int recv_SceneGetValueAsInt()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   SceneGetValueAsInt_result result = new SceneGetValueAsInt_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "SceneGetValueAsInt failed: unknown result");
 }
Пример #2
0
 public void SceneGetValueAsInt_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   SceneGetValueAsInt_args args = new SceneGetValueAsInt_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   SceneGetValueAsInt_result result = new SceneGetValueAsInt_result();
   result.Success = iface_.SceneGetValueAsInt(args._sceneId, args._valueId);
   oprot.WriteMessageBegin(new TMessage("SceneGetValueAsInt", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }