-
public final class AddMembersViewStateRepresents the state of the "Add Members" view.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisLoadingprivate final BooleanisLoadingMoreprivate final Stringqueryprivate final List<User>searchResultprivate final Set<String>selectedUserIdsprivate final Set<String>loadedMemberIds
-
Method Summary
Modifier and Type Method Description final BooleangetIsLoading()final BooleangetIsLoadingMore()final StringgetQuery()final List<User>getSearchResult()final Set<String>getSelectedUserIds()final Set<String>getLoadedMemberIds()final BooleanisSelected(User user)Returns true if the given user is selected to be added as a member. final BooleanisAlreadyMember(User user)Returns true if the given user is already a member of the channel. -
-
Constructor Detail
-
AddMembersViewState
AddMembersViewState(Boolean isLoading, Boolean isLoadingMore, String query, List<User> searchResult, Set<String> selectedUserIds, Set<String> loadedMemberIds)
- Parameters:
isLoading- Whether the view is currently loading the initial search results.isLoadingMore- Whether the view is currently loading additional (paginated) results.query- The current search query.searchResult- The list of users matching the search query.selectedUserIds- The set of IDs of users selected to be added as members.loadedMemberIds- The set of IDs of users who are already members of the channel.
-
-
Method Detail
-
getIsLoading
final Boolean getIsLoading()
-
getIsLoadingMore
final Boolean getIsLoadingMore()
-
getSearchResult
final List<User> getSearchResult()
-
getSelectedUserIds
final Set<String> getSelectedUserIds()
-
getLoadedMemberIds
final Set<String> getLoadedMemberIds()
-
isSelected
final Boolean isSelected(User user)
Returns true if the given user is selected to be added as a member.
-
isAlreadyMember
final Boolean isAlreadyMember(User user)
Returns true if the given user is already a member of the channel.
-
-
-
-