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