Delivery class
One account's delivery record for a post.
Constructors
- Delivery({required String id, required String accountId, required String status, String? platform, String? username, String? accountName, String? errorCode, String? errorMessage, int? attempts, int? maxAttempts, DateTime? scheduledPublishAt, String? delayReason, String? delayMessage, DateTime? postedAt, DateTime? lastAttemptAt, String? platformPostId, String? externalUrl})
-
Creates a delivery.
const
-
Delivery.fromJson(Map<
String, dynamic> json) -
Reads a delivery.
factory
Properties
- accountId → String
-
The account it targets.
final
- accountName → String?
-
The account's display name.
final
- attempts → int?
-
Attempts made so far.
final
- delayMessage → String?
-
A human-readable version of delayReason.
final
- delayReason → String?
-
Why it was held back.
final
- errorCode → String?
-
The machine-readable failure code.
final
- errorMessage → String?
-
The human-readable failure.
final
- externalUrl → String?
-
The public permalink.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The delivery's id.
final
- lastAttemptAt → DateTime?
-
When it was last attempted.
final
- maxAttempts → int?
-
Attempts the API will make in total.
final
- platform → String?
-
The account's network.
final
- platformPostId → String?
-
The platform's own id for the published post.
final
- postedAt → DateTime?
-
When it went live.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduledPublishAt → DateTime?
-
When a delayed delivery will be tried again.
final
- status → String
-
One of DeliveryStatus.
final
- username → String?
-
The account's handle.
final
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 -
The equality operator.
inherited