Ejemplo n.º 1
0
 public bool recv_SetSceneValue_Bool()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   SetSceneValue_Bool_result result = new SetSceneValue_Bool_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "SetSceneValue_Bool failed: unknown result");
 }
Ejemplo n.º 2
0
 public void SetSceneValue_Bool_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   SetSceneValue_Bool_args args = new SetSceneValue_Bool_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   SetSceneValue_Bool_result result = new SetSceneValue_Bool_result();
   result.Success = iface_.SetSceneValue_Bool(args._sceneId, args._valueId, args._value);
   oprot.WriteMessageBegin(new TMessage("SetSceneValue_Bool", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }