CommunityAdministratorRights class final
Describes rights of the administrator in a community
Constructors
- CommunityAdministratorRights({required bool canManageCommunity, required bool canChangeInfo, required bool canEditChatList, required bool canPromoteMembers, required bool canBanMembers})
-
Describes rights of the administrator in a community
const
-
CommunityAdministratorRights.fromJson(Map<
String, dynamic> json) -
Parses a CommunityAdministratorRights from TDLib JSON.
factory
Properties
- canBanMembers → bool
-
True, if the administrator can ban, or unban community members
final
- canChangeInfo → bool
-
True, if the administrator can change the community name, photo, and other settings
final
- canEditChatList → bool
-
True, if the user can change the chats added to the community
final
- canManageCommunity → bool
-
True, if the user is an administrator. Implied by any other privilege
final
- canPromoteMembers → bool
-
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? canManageCommunity, bool? canChangeInfo, bool? canEditChatList, bool? canPromoteMembers, bool? canBanMembers}) → CommunityAdministratorRights -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.