Cyrus-Vance_Magic-Conch/CyrusVance.CoolQRobot/ApiCall/Requests/SetGroupAdminRequest.cs
using CyrusVance.CoolQRobot.ApiCall.Requests.Base;
using Newtonsoft.Json;

namespace CyrusVance.CoolQRobot.ApiCall.Requests {
    /// <summary>
    /// 群组设置管理员
    /// </summary>
    [JsonObject]
    public class SetGroupAdminRequest : ApiRequest {
        [JsonProperty] long group_id;
        [JsonProperty] long user_id;
        [JsonProperty] bool enable;
        ///
        public SetGroupAdminRequest (long group_id, long user_id, bool enable) : base ("/set_group_admin") {
            this.response = new Results.EmptyResult ();
            this.group_id = group_id;
            this.user_id = user_id;
            this.enable = enable;
        }
    }
}