AmityCommunityRepository class

Community Repository for all community related operation

Constructors

AmityCommunityRepository()

Properties

hashCode int
The hash code for this object.
no setterinherited
live ↔ CommunityGetLiveObject
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCommunity(String displayName) CommunityCreatorBuilder
Create Community
deleteCommunity(String communityId) Future
Delete Community with community Id
getCategories() CommunityCategoryGetQueryBuilder
Get Community Categories
getCategory(String categoryId) Future<AmityCommunityCategory>
Get Community Category by id
getCommunities() CommunityGetQueryBuilder
Get Communities with filter
getCommunity(String communityId) Future<AmityCommunity>
Get Community with Community Id
getCurentUserRoles(String communityId) Future<List<String>?>
Deprecated menthod to get current user roles for community
getCurrentUserRoles(String communityId) Future<List<String>?>
Get Current logged in User Roles for the Community
getRecommendedCommunities({String? token, int? limit}) Future<List<AmityCommunity>>
Get the Recommended Community for the network
getTrendingCommunities() Future<List<AmityCommunity>>
Get trading community for the network
joinCommunity(String communityId) Future
join the community with community Id
leaveCommunity(String communityId) Future
unfollow/leave the community with community Id
membership(String communityId) AmityCommunityParticipation
Get the member list for the community Id
moderation(String communityId) AmityCommunityModeration
Community Moderation repo for moderation related operation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateCommunity(String communityId) CommunityUpdaterBuilder
Update Community

Operators

operator ==(Object other) bool
The equality operator.
inherited