Example #1
0
 public bool recv_AddSceneValue_String()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   AddSceneValue_String_result result = new AddSceneValue_String_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "AddSceneValue_String failed: unknown result");
 }
Example #2
0
 public void AddSceneValue_String_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   AddSceneValue_String_args args = new AddSceneValue_String_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   AddSceneValue_String_result result = new AddSceneValue_String_result();
   result.Success = iface_.AddSceneValue_String(args._sceneId, args._valueId, args._value);
   oprot.WriteMessageBegin(new TMessage("AddSceneValue_String", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }