Beispiel #1
0
 public void GetGroups_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetGroups_args args = new GetGroups_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetGroups_result result = new GetGroups_result();
   result.Success = iface_.GetGroups();
   oprot.WriteMessageBegin(new TMessage("GetGroups", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Beispiel #2
0
 public List<User> recv_GetGroups()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetGroups_result result = new GetGroups_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetGroups failed: unknown result");
 }