EventDeliveryRecord class

Persisted aggregate delivery record for one event.

This record answers "what is the overall delivery state of this event?" and survives process restarts. Detailed per-relay information lives separately in RelayDeliveryTarget.

Constructors

EventDeliveryRecord({required String eventId, EventDeliveryStatus status = EventDeliveryStatus.pending, EventSigningState signingState = EventSigningState.notNeeded, required int createdAt, required int updatedAt, String? serializedEventJson, int? signedAt, int? completedAt, bool requiresInteractiveSigning = false, int signAttemptCount = 0, int? lastSignAttemptAt, int? nextSignRetryAt, String? lastSignError})
const
EventDeliveryRecord.fromJson(Map<String, dynamic> json)
factory

Properties

completedAt int?
final
createdAt int
final
eventId String
final
hashCode int
The hash code for this object.
no setterinherited
isComplete bool
True once all known targets have been acknowledged.
no setter
isSigned bool
True once the event is signed or never required a remote signing phase.
no setter
lastSignAttemptAt int?
final
lastSignError String?
final
nextSignRetryAt int?
final
requiresInteractiveSigning bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializedEventJson String?
final
signAttemptCount int
final
signedAt int?
final
signingState EventSigningState
final
status EventDeliveryStatus
final
updatedAt int
final

Methods

copyWith({String? eventId, EventDeliveryStatus? status, EventSigningState? signingState, int? createdAt, int? updatedAt, Object? serializedEventJson = _noChange, Object? signedAt = _noChange, Object? completedAt = _noChange, bool? requiresInteractiveSigning, int? signAttemptCount, Object? lastSignAttemptAt = _noChange, Object? nextSignRetryAt = _noChange, Object? lastSignError = _noChange}) EventDeliveryRecord
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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