Package io.agora.rtm
Class GetOnlineUsersOptions
java.lang.Object
io.agora.rtm.GetOnlineUsersOptions
This class represents options for retrieving online users. It provides
the ability to specify whether to include the user ID, user state,
and pagination data when retrieving online users.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anGetOnlineUsersOptionsobject with default parameters.GetOnlineUsersOptions(boolean includeUserId, boolean includeState) Constructs anGetOnlineUsersOptionsobject with the specified options(whether include user id and state)GetOnlineUsersOptions(boolean includeUserId, boolean includeState, String page) Constructs a new instance ofGetOnlineUsersOptionswith the specified options. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetPage()voidsetIncludeState(boolean includeState) voidsetIncludeUserId(boolean includeUserId) voidtoString()
-
Constructor Details
-
GetOnlineUsersOptions
public GetOnlineUsersOptions()Constructs anGetOnlineUsersOptionsobject with default parameters. -
GetOnlineUsersOptions
public GetOnlineUsersOptions(boolean includeUserId, boolean includeState) Constructs anGetOnlineUsersOptionsobject with the specified options(whether include user id and state)- Parameters:
includeUserId- Whether to display user id in query resultincludeState- Whether to display user state in query result
-
GetOnlineUsersOptions
Constructs a new instance ofGetOnlineUsersOptionswith the specified options.- Parameters:
includeUserId- specifies whether to include the user ID in the query result.includeState- specifies whether to include the user state in the query result.page- the string of page for pagination
-
-
Method Details