Community Model
The Community
class represents a community within the platform, encapsulating various attributes and settings. Below are the details of the Community
model:
Properties
Variable | Type | Description | Optional |
---|---|---|---|
id | int | The unique identifier of the community. | |
name | String | The name of the community. | |
imageUrl | String | The URL of the community's image. | ✔ |
purpose | String | The purpose or goal of the community. | ✔ |
about | String | Detailed information about the community. | ✔ |
membersCount | int | The count of members in the community. | ✔ |
isMember | bool | Indicates whether the user is a member of the community. | ✔ |
pendingMembersCount | int | The count of pending member requests. | ✔ |
pendingChatRoomCount | int | The count of pending chat room requests. | ✔ |
openReportsCount | int | The count of open reports related to the community. | ✔ |
chatroomUnseen | int | The count of unseen chat rooms in the community. | ✔ |
updatedAt | int | The timestamp when the community was last updated. | ✔ |
isAdmin | bool | Indicates whether the user is an administrator of the community. | ✔ |
state | int | The state of the community. | ✔ |
memberState | int | The state of the member within the community. | ✔ |
createdBy | String | The user who created the community. | ✔ |
managedBy | String | The user who manages the community. | ✔ |
date | String | The date when the community was created. | ✔ |
type | int | The type of the community. | ✔ |
subType | int | The subtype of the community. | ✔ |
clickState | int | The click state of the community. | ✔ |
chatroomCount | int | The count of chat rooms in the community. | ✔ |
actions | List<dynamic> | List of actions associated with the community. | ✔ |
newChatRoomUsers | List<User >` | List of new users added to chat rooms in the community. | ✔ |
chatRoomUsers | List<User > | List of users in chat rooms in the community. | ✔ |
memberRightStates | List<int > | List of member right states in the community. | ✔ |
orderTime | int | The timestamp used for ordering within the community. | ✔ |
menu | List<String > | List of menu items associated with the community. | ✔ |
leaveCommunity | dynamic | Action to leave the community. | ✔ |
isPaid | bool | Indicates whether the community is a paid community. | ✔ |
autoApproval | bool | Indicates whether new members are auto-approved. | ✔ |
gracePeriod | int | The grace period for community-related actions. | ✔ |
isDiscoverable | bool | Indicates whether the community is discoverable. | ✔ |
websiteUrl | String | The URL of the community's website. | ✔ |
referralEnabled | bool | Indicates whether the referral feature is enabled for the community. | ✔ |
communitySettingRights | List<CommunitySettingsRights > | List of community setting rights. | ✔ |
likeMindsPlan | String | The plan associated with the community. | ✔ |
isFreemiumCommunity | bool | Indicates whether the community is a freemium community. | ✔ |
CommunitySettingsRights
The CommunitySettingsRights
class represents the settings and rights associated with a community. It encapsulates various attributes that define the configuration and state of specific settings. Below are the details of the CommunitySettingsRights
model:
Properties
Variable | Type | Description | Optional |
---|---|---|---|
id | int | The unique identifier of the settings right. | |
state | int | The state of the settings right. | |
title | String | The title of the settings right. | |
subtitle | String | The subtitle or additional information. | ✔ |
isLocked | bool | Indicates whether the settings are locked. | |
isSelected | bool | Indicates whether the settings are selected. |
CommunityConfigurations
The CommunityConfigurations
class represents the configurations associated with a community. It encapsulates various attributes that define the description, type, and values of specific configurations. Below are the details of the CommunityConfigurations
model:
Properties
Variable | Type | Description | Optional |
---|---|---|---|
description | String | The description of the community configuration. | ✔ |
type | String | The type of the community configuration. | ✔ |
value | Map<String, dynamic> | The values associated with the configuration. | ✔ |