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

namespace CyrusVance.CoolQRobot.ApiCall.Requests {
    /// <summary>
    /// 退出/解散群组
    /// </summary>
    [Newtonsoft.Json.JsonObject]
    public class SetGroupLeaveRequest : ApiRequest {
        [Newtonsoft.Json.JsonProperty] long group_id;
        [Newtonsoft.Json.JsonProperty] bool is_dismiss;
        /// <param name="group_id">群号</param>
        /// <param name="is_dismiss">是否解散，如果登录号是群主，则仅在此项为 true 时能够解散</param>
        public SetGroupLeaveRequest (long group_id, bool is_dismiss = false) : base ("/set_group_leave") {
            this.response = new Results.EmptyResult ();
            this.group_id = group_id;
            this.is_dismiss = is_dismiss;
        }
    }
}