ConversationSummary class

A conversation as the gateway reports it on ready / conversation.start.

Annotations

Constructors

ConversationSummary({required String id, String siteId = '', String visitorId = '', ConversationStatus status = ConversationStatus.open, int seq = 0, int visitorUnread = 0, DateTime? lastMessageAt, String? lastMessagePreview, SenderType? lastMessageSenderType, String? assigneeKind, String? assigneeId, DateTime? firstResponseAt, DateTime? resolvedAt, String? subject, DateTime? createdAt, DateTime? updatedAt, Json raw = const {}})
Creates a summary.
const
ConversationSummary.fromJson(Json j)
Parses the wire shape.
factory

Properties

assigneeId → String?
Assignee id.
final
assigneeKind → String?
user or bot.
final
createdAt → DateTime?
Creation time.
final
firstResponseAt → DateTime?
When the team first replied.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Conversation id.
final
lastMessageAt → DateTime?
When the last message was sent.
final
lastMessagePreview → String?
Preview of the last message.
final
lastMessageSenderType → SenderType?
Who sent the last message.
final
raw → Json
The full wire payload.
final
resolvedAt → DateTime?
When it was resolved.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seq → int
Latest sequence number.
final
siteId → String
Site id.
final
status → ConversationStatus
Current status.
final
subject → String?
Subject line.
final
updatedAt → DateTime?
Last update time.
final
visitorId → String
Visitor id.
final
visitorUnread → int
Messages the visitor has not read.
final

Methods

copyWith({ConversationStatus? status, int? seq, int? visitorUnread, DateTime? lastMessageAt, String? lastMessagePreview}) → ConversationSummary
Copies with some fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
The wire shape.
toString() → String
A string representation of this object.
inherited

Operators

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