public bool recv_IsNodeRoutingDevice() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } IsNodeRoutingDevice_result result = new IsNodeRoutingDevice_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "IsNodeRoutingDevice failed: unknown result"); }
public void IsNodeRoutingDevice_Process(int seqid, TProtocol iprot, TProtocol oprot) { IsNodeRoutingDevice_args args = new IsNodeRoutingDevice_args(); args.Read(iprot); iprot.ReadMessageEnd(); IsNodeRoutingDevice_result result = new IsNodeRoutingDevice_result(); result.Success = iface_.IsNodeRoutingDevice(args._homeId, args._nodeId); oprot.WriteMessageBegin(new TMessage("IsNodeRoutingDevice", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }