CardMessage class
Represents a message with a card view that contains interactive elements.
- Inheritance
-
- Object
- AppEntity
- BaseMessage
- InteractiveMessage
- CardMessage
Constructors
-
CardMessage({required String text, String? imageUrl, required List<
BaseInteractiveElement> cardActions, dynamic tags, int? id, String? muid, User? sender, AppEntity? receiver, required String receiverUid, String type = MessageTypeConstants.card, required String receiverType, String? category = MessageCategoryConstants.interactive, DateTime? sentAt, DateTime? deliveredAt, DateTime? readAt, Map<String, dynamic> ? metadata, DateTime? readByMeAt, DateTime? deliveredToMeAt, DateTime? deletedAt, DateTime? editedAt, String? deletedBy, String? editedBy, DateTime? updatedAt, String? conversationId, int? parentMessageId, int? replyCount, InteractionGoal? interactionGoal, List<Interaction> ? interactions, bool? allowSenderInteraction}) - Creates a new CardMessage instance.
- CardMessage.fromInteractiveMessage(InteractiveMessage message)
-
Creates a CardMessage from an InteractiveMessage.
factory
Properties
- allowSenderInteraction ↔ bool
-
getter/setter pairinherited
-
cardActions
↔ List<
BaseInteractiveElement> -
A list of interactive elements/actions associated with the card message.
getter/setter pair
- category ↔ String
-
getter/setter pairinherited
- conversationId ↔ String?
-
getter/setter pairinherited
- deletedAt ↔ DateTime?
-
getter/setter pairinherited
- deletedBy ↔ String?
-
getter/setter pairinherited
- deliveredAt ↔ DateTime?
-
getter/setter pairinherited
- deliveredToMeAt ↔ DateTime?
-
getter/setter pairinherited
- editedAt ↔ DateTime?
-
getter/setter pairinherited
- editedBy ↔ String?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMentionedMe ↔ bool?
-
getter/setter pairinherited
- id ↔ int
-
getter/setter pairinherited
- imageUrl ↔ String?
-
The URL of the image associated with the card message.
getter/setter pair
- interactionGoal ↔ InteractionGoal?
-
getter/setter pairinherited
-
interactions
↔ List<
Interaction> ? -
getter/setter pairinherited
-
interactiveData
↔ Map<
String, dynamic> -
getter/setter pairinherited
-
mentionedUsers
↔ List<
User> -
getter/setter pairinherited
-
metadata
↔ Map<
String, dynamic> ? -
getter/setter pairinherited
- muid ↔ String
-
getter/setter pairinherited
- parentMessageId ↔ int
-
getter/setter pairinherited
-
reactions
↔ List<
ReactionCount> -
getter/setter pairinherited
- readAt ↔ DateTime?
-
getter/setter pairinherited
- readByMeAt ↔ DateTime?
-
getter/setter pairinherited
- receiver ↔ AppEntity?
-
getter/setter pairinherited
- receiverType ↔ String
-
getter/setter pairinherited
- receiverUid ↔ String
-
getter/setter pairinherited
- replyCount ↔ int
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender ↔ User?
-
getter/setter pairinherited
- sentAt ↔ DateTime?
-
getter/setter pairinherited
-
getter/setter pairinherited
- text ↔ String
-
The text content of the card message.
getter/setter pair
- type ↔ String
-
getter/setter pairinherited
- unreadRepliesCount ↔ int
-
getter/setter pairinherited
- updatedAt ↔ DateTime?
-
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toInteractiveMessage(
) → InteractiveMessage - Converts the CardMessage to an InteractiveMessage.
-
toJson(
) → Map< String, dynamic> -
Generates a map representing the
InteractiveMessage
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited