public void RemoveUserFromGroup_Process(int seqid, TProtocol iprot, TProtocol oprot) { RemoveUserFromGroup_args args = new RemoveUserFromGroup_args(); args.Read(iprot); iprot.ReadMessageEnd(); RemoveUserFromGroup_result result = new RemoveUserFromGroup_result(); result.Success = iface_.RemoveUserFromGroup(args.GroupId, args.User); oprot.WriteMessageBegin(new TMessage("RemoveUserFromGroup", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public bool recv_RemoveUserFromGroup() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } RemoveUserFromGroup_result result = new RemoveUserFromGroup_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "RemoveUserFromGroup failed: unknown result"); }