PublicApi class
Methods
-
createRoom(int userId, String roomName, {ApiError? error})
→ Future<GameRoomModel?>
-
创建游戏房间
-
getAllRoom({ApiError? error})
→ Future<List<GameRoomModel>>
-
获取所有的房间
-
getAvaPics()
→ Future<List<SystemPic>>
-
获取系统的预设头像
-
getInlineUserCount()
→ Future<String>
-
获取当前在线的总人数
-
getUser(String token, {OnRequestStart? start})
→ Future<User?>
-
根据jwt token 获取用户对象信息
-
inRoom(String userId, String roomName)
→ Future<void>
-
进入一个房间
-
login(String username, String password, {ValueChanged<String>? tokenHandle, ValueChanged<String>? loginFail})
→ Future<bool>
-
执行用户登录
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
register(String loginName, String password, String pic, {ApiError? apiError, ValueChanged? otherDataHandle})
→ Future<bool>
-
注册一个典典账号
-
removeRoom(String name)
→ Future<void>
-
删除一个房间
-
toString()
→ String
-
A string representation of this object.
inherited