Пример #1
0
 public bool recv_IsNodeListeningDevice()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   IsNodeListeningDevice_result result = new IsNodeListeningDevice_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "IsNodeListeningDevice failed: unknown result");
 }
Пример #2
0
 public void IsNodeListeningDevice_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   IsNodeListeningDevice_args args = new IsNodeListeningDevice_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   IsNodeListeningDevice_result result = new IsNodeListeningDevice_result();
   result.Success = iface_.IsNodeListeningDevice(args._homeId, args._nodeId);
   oprot.WriteMessageBegin(new TMessage("IsNodeListeningDevice", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }