示例#1
0
 public void AddUserToGroup_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   AddUserToGroup_args args = new AddUserToGroup_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   AddUserToGroup_result result = new AddUserToGroup_result();
   result.Success = iface_.AddUserToGroup(args.GroupId, args.User);
   oprot.WriteMessageBegin(new TMessage("AddUserToGroup", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
示例#2
0
 public bool recv_AddUserToGroup()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   AddUserToGroup_result result = new AddUserToGroup_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "AddUserToGroup failed: unknown result");
 }