Package im.getsocial.sdk.communities
Class TopicsQuery
- java.lang.Object
-
- im.getsocial.sdk.communities.TopicsQuery
-
public final class TopicsQuery extends java.lang.Object
Query to get topics.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TopicsQuery
all()
Get all topics.static TopicsQuery
find(java.lang.String name)
Find topics by name or description.static TopicsQuery
followedByUser(UserId userId)
Get topics followed by a specific user.java.lang.String
getSearchTerm()
TopicsQuery
onlyTrending(boolean trending)
Get trending topics.TopicsQuery
withLabels(java.util.List<java.lang.String> labels)
Get topics with the specified labels.TopicsQuery
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Get topics with the specified properties.
-
-
-
Method Detail
-
all
public static TopicsQuery all()
Get all topics.- Returns:
- new instance.
-
find
public static TopicsQuery find(java.lang.String name)
Find topics by name or description.- Parameters:
name
- topics name/description or part of it.- Returns:
- new instance.
-
followedByUser
public static TopicsQuery followedByUser(UserId userId)
Get topics followed by a specific user.- Parameters:
userId
- ID of user.- Returns:
- new instance.
-
onlyTrending
public TopicsQuery onlyTrending(boolean trending)
Get trending topics.- Parameters:
trending
- Only trending or all topics.- Returns:
- new query.
-
withLabels
public TopicsQuery withLabels(java.util.List<java.lang.String> labels)
Get topics with the specified labels.- Parameters:
labels
- List of labels.- Returns:
- new query.
-
withProperties
public TopicsQuery withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Get topics with the specified properties.- Parameters:
properties
- Properties.- Returns:
- new query.
-
getSearchTerm
public java.lang.String getSearchTerm()
- Returns:
- string passed to
find(String)
. Empty string if searching for all topics.
-
-