public final class GroupsQuery
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static GroupsQuery |
all()
Get all groups.
|
static GroupsQuery |
find(java.lang.String name)
Find groups by name or description.
|
GroupsQuery |
followedByUser(UserId userId)
Get groups followed by a specific user.
|
java.lang.String |
getSearchTerm() |
GroupsQuery |
onlyTrending(boolean trending)
Get trending groups.
|
GroupsQuery |
withLabels(java.util.List<java.lang.String> labels)
Get groups with the specified labels.
|
GroupsQuery |
withMember(UserId userId) |
GroupsQuery |
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Get groups with the specified properties.
|
public static GroupsQuery all()
public static GroupsQuery find(java.lang.String name)
name
- groups name/description or part of it.public GroupsQuery followedByUser(UserId userId)
userId
- ID of user.public GroupsQuery withMember(UserId userId)
public GroupsQuery onlyTrending(boolean trending)
trending
- Only trending or all groups.public GroupsQuery withLabels(java.util.List<java.lang.String> labels)
labels
- List of labels.public GroupsQuery withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- Properties.public java.lang.String getSearchTerm()
find(String)
. Empty string if searching for all groups.(c) Copyright GetSocial BV, 2022. All Rights Reserved.