-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加群特殊头衔变动事件 优化分类结构
- Loading branch information
Showing
31 changed files
with
176 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...to/event/notice/FriendAddNoticeEvent.java → ...t/notice/friend/FriendAddNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...t/notice/PrivateMsgDeleteNoticeEvent.java → ...e/friend/PrivateMsgDeleteNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
.../event/notice/PrivatePokeNoticeEvent.java → ...notice/friend/PrivatePokeNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...o/event/notice/GroupAdminNoticeEvent.java → ...t/notice/group/GroupAdminNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...dto/event/notice/GroupBanNoticeEvent.java → ...ent/notice/group/GroupBanNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...nt/notice/GroupCardChangeNoticeEvent.java → ...ice/group/GroupCardChangeNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...vent/notice/GroupDecreaseNoticeEvent.java → ...otice/group/GroupDecreaseNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...t/notice/GroupHonorChangeNoticeEvent.java → ...ce/group/GroupHonorChangeNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...vent/notice/GroupIncreaseNoticeEvent.java → ...otice/group/GroupIncreaseNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ent/notice/GroupLuckyKingNoticeEvent.java → ...tice/group/GroupLuckyKingNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ent/notice/GroupMsgDeleteNoticeEvent.java → ...tice/group/GroupMsgDeleteNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...to/event/notice/GroupPokeNoticeEvent.java → ...nt/notice/group/GroupPokeNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
.../java/cn/evolvefield/mirai/onebot/dto/event/notice/group/GroupTitleChangeNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package cn.evolvefield.mirai.onebot.dto.event.notice.group; | ||
|
||
import cn.evolvefield.mirai.onebot.dto.event.notice.NoticeEvent; | ||
import com.alibaba.fastjson2.annotation.JSONField; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
/** | ||
* Created on 2022/7/8. | ||
* | ||
* @author cnlimiter | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@SuperBuilder(toBuilder = true) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class GroupTitleChangeNoticeEvent extends NoticeEvent { | ||
|
||
@JSONField(name = "title_new") | ||
private String titleNew; | ||
|
||
@JSONField(name = "group_id") | ||
private long groupId; | ||
|
||
@JSONField(name = "title_old") | ||
private String titleOld; | ||
|
||
@JSONField(name = "user_id") | ||
private long userId; | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
.../event/notice/GroupUploadNoticeEvent.java → .../notice/group/GroupUploadNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ent/notice/ChannelCreatedNoticeEvent.java → ...tice/guild/ChannelCreatedNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...t/notice/ChannelDestroyedNoticeEvent.java → ...ce/guild/ChannelDestroyedNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ent/notice/ChannelUpdatedNoticeEvent.java → ...tice/guild/ChannelUpdatedNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...e/MessageReactionsUpdatedNoticeEvent.java → ...d/MessageReactionsUpdatedNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
.../java/cn/evolvefield/mirai/onebot/dto/event/notice/misc/OtherClientStatusNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package cn.evolvefield.mirai.onebot.dto.event.notice.misc; | ||
|
||
import cn.evolvefield.mirai.onebot.dto.event.notice.NoticeEvent; | ||
import com.alibaba.fastjson2.annotation.JSONField; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
import net.mamoe.mirai.contact.OtherClientInfo; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* Created on 2022/7/8. | ||
* | ||
* @author cnlimiter | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@SuperBuilder(toBuilder = true) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class OtherClientStatusNoticeEvent extends NoticeEvent { | ||
|
||
@JSONField(name = "online") | ||
private boolean online; | ||
|
||
@JSONField(name = "client") | ||
private Clients client; | ||
|
||
/** | ||
* 设备对象 | ||
*/ | ||
@Data | ||
public static class Clients { | ||
|
||
public Clients(OtherClientInfo info){ | ||
this.platform = Objects.requireNonNull(info.getPlatform()).name().toLowerCase(); | ||
this.appId = info.getAppId(); | ||
this.deviceName = info.getDeviceName(); | ||
this.deviceKind = info.getDeviceKind(); | ||
} | ||
|
||
@JSONField(name = "app_id") | ||
private long appId; | ||
|
||
@JSONField(name = "platform") | ||
private String platform; | ||
|
||
@JSONField(name = "device_name") | ||
private String deviceName; | ||
|
||
@JSONField(name = "device_kind") | ||
private String deviceKind; | ||
|
||
} | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
...otice/ReceiveOfflineFilesNoticeEvent.java → .../misc/ReceiveOfflineFilesNoticeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nebot/dto/response/msic/AsyncStarted.java → ...nebot/dto/response/misc/AsyncStarted.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...bot/dto/response/msic/GeneralSuccess.java → ...bot/dto/response/misc/GeneralSuccess.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...bot/dto/response/msic/InvalidRequest.java → ...bot/dto/response/misc/InvalidRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nebot/dto/response/msic/MiraiFailure.java → ...nebot/dto/response/misc/MiraiFailure.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ebot/dto/response/msic/PluginFailure.java → ...ebot/dto/response/misc/PluginFailure.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t/dto/response/msic/PluginStatusResp.java → ...t/dto/response/misc/PluginStatusResp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...onebot/dto/response/msic/PluginsGood.java → ...onebot/dto/response/misc/PluginsGood.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...onebot/dto/response/msic/VersionInfo.java → ...onebot/dto/response/misc/VersionInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters