public class SimpleBotManager extends Object implements BotManager
| 构造器和说明 |
|---|
SimpleBotManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable Bot |
getBot(long username)
Get the bot with special id
|
List<Bot> |
getBots()
Get the list of bots
|
boolean |
login(Bot bot)
Login the bot
|
@NotNull Future<Bot> |
login(long id,
String password)
Login and get the bot with id and password
|
@NotNull Bot |
loginDirectly(long id,
String password)
Login and get the bot with id and password
This is a blocking method
|
boolean |
logout(@NotNull Bot bot)
Logout the bot
|
boolean |
relogin(@NotNull Bot bot)
Relogin the bot
|
Bot |
remove(long id)
Remove the bot
|
static void |
removeAll() |
@NotNull public @NotNull Future<Bot> login(long id, String password)
BotManagerlogin 在接口中 BotManagerid - the id of the botpassword - the password of the bot@NotNull public @NotNull Bot loginDirectly(long id, String password)
BotManagerloginDirectly 在接口中 BotManagerid - the id of the botpassword - the password of the botpublic boolean login(Bot bot)
BotManagerlogin 在接口中 BotManagerbot - the bot need to log inpublic boolean logout(@NotNull
@NotNull Bot bot)
BotManagerlogout 在接口中 BotManagerbot - the bot need to log out@Nullable public @Nullable Bot getBot(long username)
BotManagergetBot 在接口中 BotManagerusername - the id of the botpublic boolean relogin(@NotNull
@NotNull Bot bot)
BotManagerrelogin 在接口中 BotManagerbot - the bot need to reloginpublic List<Bot> getBots()
BotManagergetBots 在接口中 BotManagerpublic Bot remove(long id)
BotManagerremove 在接口中 BotManagerid - the bot idpublic static void removeAll()
Copyright © 2022. All rights reserved.