CommunitiesEntity

CommunitiesEntity

# new CommunitiesEntity(entityMap)

Creates a new CommunitiesEntity instance from the provider parameters.
Parameters:
Name Type Description
entityMap Object Entity parameters
Properties
Name Type Attributes Default Description
id string Entity ID
type number Entity type
title string <optional>
Entity title
avatarUrl string <optional>
Entity avatar
followersCount string <optional>
0 Followers amount
isFollowedByMe string <optional>
false True if followed by current user
allowedActions Object.<number, boolean> <optional>
{} Allowed actions

Methods

# isActionAllowed(action) → {boolean}

Check if current user is allowed to perform a certain action.
Parameters:
Name Type Description
action number Action to be checked.
Returns:
- True if current user is allowed to perform action, false otherwise.
Type
boolean