Class UserStore
UserStore
类用于管理用户。
Accessors
assistantList
get assistantList(): Map<string, EduUserStruct>
助教列表
localUser
get localUser(): undefined | EduUserStruct
本地用户
rewards
get rewards(): Map<string, number>
奖励信息字典 key: 用户UUID value: 用户获得的奖励数
studentList
get studentList(): Map<string, EduUserStruct>
学生列表
teacherList
get teacherList(): Map<string, EduUserStruct>
老师列表
userCount
get userCount(): number
房间内用户数
users
get users(): Map<string, EduUserStruct>
房间内所有用户
Methods
fetchUserList
fetchUserList(params: FetchUserParam): Promise<{ count: any; list: any; nextId: any; total: any }>
获取用户列表
参数
参数名 | 描述 |
---|---|
返回值
Promise<{ count: any; list: any; nextId: any; total: any }>
用户列表
kickOutOnceOrBan
updateUserProperties
updateUserProperties(users: { cause?: any; properties: any; userUuid: string }[], fromScene?: AgoraRteScene): Promise<void>
更新用户自定属性
参数
参数名 | 描述 |
---|---|
要更新的用户属性信息 要更新的用户所在的房间对象,不传默认为当前房间 |
返回值
Promise<void>
查询条件