-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
6c95c0f
commit e2b98ca
Showing
18 changed files
with
514 additions
and
242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ replay_pid* | |
.idea/ | ||
*.iml | ||
target/ | ||
test/ | ||
src/test/ |
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
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
16 changes: 16 additions & 0 deletions
16
src/main/java/io/github/minecraftchampions/dodoopenjava/api/CommandSender.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,16 @@ | ||
package io.github.minecraftchampions.dodoopenjava.api; | ||
|
||
import io.github.minecraftchampions.dodoopenjava.message.text.TextMessage; | ||
|
||
/** | ||
* 命令发送者接口 | ||
*/ | ||
public interface CommandSender extends User { | ||
void editMessage(TextMessage message); | ||
|
||
String getChannelId(); | ||
|
||
String getMessageId(); | ||
|
||
boolean isPersonalChat(); | ||
} |
64 changes: 64 additions & 0 deletions
64
src/main/java/io/github/minecraftchampions/dodoopenjava/api/User.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,64 @@ | ||
package io.github.minecraftchampions.dodoopenjava.api; | ||
|
||
import io.github.minecraftchampions.dodoopenjava.message.Message; | ||
import lombok.NonNull; | ||
|
||
/** | ||
* 用户接口 | ||
*/ | ||
public interface User { | ||
String getIslandSourceId(); | ||
|
||
String getDodoSourceId(); | ||
|
||
String getNickName(); | ||
|
||
String getName(); | ||
|
||
String getAvatarUrl(); | ||
|
||
String getJoinTime(); | ||
|
||
int getSex(); | ||
|
||
int getLevel(); | ||
|
||
int getIsBot(); | ||
|
||
int getOnlineDevice(); | ||
|
||
int getOnlineStatus(); | ||
|
||
String getInviterDodoSourceId(); | ||
|
||
void editNickName(@NonNull String nickName); | ||
|
||
void mute(int mills); | ||
|
||
void mute(int mills, @NonNull String reason); | ||
|
||
int getInvitationCount(); | ||
|
||
/** | ||
* 封禁成员,传null视作不传参 | ||
*/ | ||
void ban(String reason, String noticeChannelId); | ||
|
||
void unmute(); | ||
|
||
void unban(); | ||
|
||
void addRole(@NonNull String roleId); | ||
|
||
void removeRole(@NonNull String roleId); | ||
|
||
long getIntegralBalance(); | ||
|
||
void editIntegral(int type, long integral); | ||
|
||
void addIntegral(long integral); | ||
|
||
void removeIntegral(long integral); | ||
|
||
String sendPersonalMessage(@NonNull Message message); | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/java/io/github/minecraftchampions/dodoopenjava/api/package-info.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** | ||
* Dodo开放平台各个版本的接口 | ||
* API | ||
*/ | ||
package io.github.minecraftchampions.dodoopenjava.api; |
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
Oops, something went wrong.