/// <summary> /// 初始化 /// </summary> /// <param name="connectionGuid">服务器链接标识</param> /// <param name="eventName">事件名</param> /// <param name="adminChangeArgs">管理员变动事件参数</param> internal GroupAdminChangeEventArgs(Guid connectionGuid, string eventName, ApiAdminChangeEventArgs adminChangeArgs) : base(connectionGuid, eventName, adminChangeArgs.SelfID, adminChangeArgs.Time) { this.SourceGroup = new Group(connectionGuid, adminChangeArgs.GroupId); this.Sender = new User(connectionGuid, adminChangeArgs.UserId); this.SubType = adminChangeArgs.SubType; }
/// <summary> /// 初始化 /// </summary> /// <param name="serviceId">服务ID</param> /// <param name="connectionId">服务器链接标识</param> /// <param name="eventName">事件名</param> /// <param name="adminChangeArgs">管理员变动事件参数</param> internal GroupAdminChangeEventArgs(Guid serviceId, Guid connectionId, string eventName, OnebotAdminChangeEventArgs adminChangeArgs) : base(serviceId, connectionId, eventName, adminChangeArgs.SelfId, adminChangeArgs.Time, SourceFlag.Group) { SourceGroup = new Group(serviceId, connectionId, adminChangeArgs.GroupId); Sender = new User(serviceId, connectionId, adminChangeArgs.UserId); SubType = adminChangeArgs.SubType; }