Cyrus-Vance_Magic-Conch/CyrusVance.CoolQRobot/ApiCall/Requests/SetGroupKickRequest.cs
using CyrusVance.CoolQRobot.ApiCall.Requests.Base;

namespace CyrusVance.CoolQRobot.ApiCall.Requests {
    /// <summary>
    /// 群组踢人
    /// </summary>
    [Newtonsoft.Json.JsonObject]
    public class SetGroupKickRequest : RateLimitableRequest {
        [Newtonsoft.Json.JsonProperty] bool reject_add_request;
        [Newtonsoft.Json.JsonProperty] long group_id;
        [Newtonsoft.Json.JsonProperty] long user_id;
        /// <param name="group_id">群号码</param>
        /// <param name="user_id">要踢的用户QQ号</param>
        /// <param name="reject_add_request">是否拒绝加群请求</param>
        /// <param name="isRateLimited">是否为限速调用</param>
        /// <remark>注意此处的isAsync指的是酷Q端的异步！</remark>
        public SetGroupKickRequest (long group_id, long user_id, bool reject_add_request = false, bool isRateLimited = false):
            base ("/set_group_kick", isRateLimited) {
                this.group_id = group_id;
                this.user_id = user_id;
                this.response = new Results.EmptyResult ();
                this.reject_add_request = reject_add_request;
            }
    }
}