public class CommunitiesEntity
extends java.lang.Object
Constructor and Description |
---|
CommunitiesEntity(CommunitiesEntityType type,
java.lang.String id,
boolean isFollower,
int followersCount,
java.lang.String title,
java.lang.String avatarUrl,
java.util.Map<CommunitiesAction,java.lang.Boolean> availableActions) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAvatarUrl()
Get avatar URL of the topic/user.
|
int |
getFollowersCount()
Number of followers of the entity.
|
java.lang.String |
getId()
Unique identifier of the entity.
|
java.lang.String |
getTitle()
Title of the topic.
|
CommunitiesEntityType |
getType()
Type of entity.
|
boolean |
isActionAllowed(CommunitiesAction action)
Check if current user is allowed to perform a certain action.
|
boolean |
isFollowedByMe()
If current user follows the entity.
|
public CommunitiesEntity(CommunitiesEntityType type, java.lang.String id, boolean isFollower, int followersCount, java.lang.String title, java.lang.String avatarUrl, java.util.Map<CommunitiesAction,java.lang.Boolean> availableActions)
public CommunitiesEntityType getType()
public java.lang.String getId()
CommunitiesEntityType.USER
, you can use ID as user ID in other calls.
Could be null for CommunitiesEntityType.APP
or CommunitiesEntityType.UNKNOWN
.public boolean isFollowedByMe()
public int getFollowersCount()
public java.lang.String getTitle()
public java.lang.String getAvatarUrl()
public boolean isActionAllowed(CommunitiesAction action)
action
- action to be checked.(c) Copyright GetSocial BV, 2022. All Rights Reserved.