communityId
String
channelId
String
userId
String
displayName
String
avatarFileId
String
description
String
isOfficial
Boolean
isPublic
Boolean
onlyAdminCanPost
Boolean
tags
Array.<String>
metadata
Object
postsCount
Integer
membersCount
Integer
isJoined
Boolean
categoryIds
Array.<String>
isDeleted
Boolean
false
createdAt
String($date-time)
updatedAt
String($date-time)
hasFlaggedComment
Boolean
false
AmityCommunityRepository
, a class that contain all community related methods. Then call createCommunity()
to obtain the RxJava and observe it in order to obtain the final community model.AmityFileRepository
then pass the obtained AmityImage
to createCommunity
API.joinCommunity()
method will add the active user as a member of the channel.doOnComplete{}
block.getCommunity(:id)
method:withKeyword
parameter let you filter communities based on the community displayName
sortBy
parameters let you filter communities based on the order that the communities were created or based on alphabetical orderfilter
parameter let you filter communities based on the logged-in user membership statuscategoryId
parameters let you filter communities based on community categoriessortBy
is LAST_CREATED
so you can skip .sortBy
in builder.AmityCommunityModeration
.AmityCommunityParticipation
provides a list of members by role in the given community.AmityPermission
enums to AmityCoreClient.hasPermission(amityPermission)
method.AmityCommunityRepository
will also be able to manage community categories. When communities are put into a category, you will be able to sort and filter each of the communities in that category.Note. Right now categories will only be creatable and updatable from the Amity Social Cloud Console.
sortBy
is NAME
so you can skip .sortBy
in builderAmityCommunity.kt
model allows user to get post count by feed type .AmityPermission.REVIEW_COMMUNITY_POST
by following this: