InboxEntry class
One row of GET /api/v1/inbox: the conversation plus its InboxSummary.
conversation has the GET /conversations shape, except that
participants is bounded to at most ten members (the caller, the latest
sender when still a member, then active members by id). The summary fields
are also exposed directly on the entry.
Constructors
- InboxEntry({required Conversation conversation, required InboxSummary summary})
-
const
-
InboxEntry.fromJson(Map<
String, dynamic> json) -
Decodes an inbox entry; the summary fields sit flat beside
conversation, in camelCase or snake_case.factory
Properties
- activityAt → DateTime
-
See InboxSummary.activityAt.
no setter
- conversation → Conversation
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isUnread → bool
-
See InboxSummary.isUnread.
no setter
- lastReadAt → DateTime?
-
See InboxSummary.lastReadAt.
no setter
- latestMessage → Message?
-
See InboxSummary.latestMessage.
no setter
- privateStateVersion → int
-
See InboxSummary.privateStateVersion.
no setter
- readPosition → ReadPosition?
-
See InboxSummary.readPosition.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary → InboxSummary
-
The preview, unread count and caller read state for conversation.
final
- unreadCount → int
-
See InboxSummary.unreadCount.
no setter
- unreadCountCapped → bool
-
See InboxSummary.unreadCountCapped.
no setter
- unreadMarkedAt → DateTime?
-
See InboxSummary.unreadMarkedAt.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Value equality; conversation compares the way Conversation does (by
identity).
override