ScheduledActionView class abstract
View of a scheduled moderation action
- Available extensions
- Annotations
-
- @freezed
Constructors
-
ScheduledActionView({@Default.new('tools.ozone.moderation.defs#scheduledActionView') String $type, required int id, @ScheduledActionViewActionConverter() required ScheduledActionViewAction action, Map<
String, dynamic> ? eventData, required String did, DateTime? executeAt, DateTime? executeAfter, DateTime? executeUntil, bool? randomizeExecution, required String createdBy, required DateTime createdAt, DateTime? updatedAt, @ScheduledActionViewStatusConverter() required ScheduledActionViewStatus status, DateTime? lastExecutedAt, String? lastFailureReason, int? executionEventId, Map<String, dynamic> ? $unknown}) -
constfactory
-
ScheduledActionView.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
- action → ScheduledActionViewAction
-
Type of action to be executed
no setterinherited
-
copyWith
→ $ScheduledActionViewCopyWith<
ScheduledActionView> -
Create a copy of ScheduledActionView
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
When the scheduled action was created
no setterinherited
- createdBy → String
-
DID of the user who created this scheduled action
no setterinherited
- did → String
-
Subject DID for the action
no setterinherited
-
eventData
→ Map<
String, dynamic> ? -
no setterinherited
- executeAfter → DateTime?
-
Earliest time to execute the action (for randomized scheduling)
no setterinherited
- executeAt → DateTime?
-
Exact time to execute the action
no setterinherited
- executeUntil → DateTime?
-
Latest time to execute the action (for randomized scheduling)
no setterinherited
- executionEventId → int?
-
ID of the moderation event created when action was successfully executed
no setterinherited
- hasEventData → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasExecuteAfter → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasExecuteAt → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasExecuteUntil → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasExecutionEventId → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasLastExecutedAt → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasLastFailureReason → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasNotEventData → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasNotExecuteAfter → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasNotExecuteAt → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasNotExecuteUntil → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasNotExecutionEventId → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasNotLastExecutedAt → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasNotLastFailureReason → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasNotUpdatedAt → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - hasUpdatedAt → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - id → int
-
Auto-incrementing row ID
no setterinherited
- isNotRandomizeExecution → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - isRandomizeExecution → bool
-
Available on ScheduledActionView, provided by the ScheduledActionViewExtension extension
no setter - lastExecutedAt → DateTime?
-
When the action was last attempted to be executed
no setterinherited
- lastFailureReason → String?
-
Reason for the last execution failure
no setterinherited
- randomizeExecution → bool?
-
Whether execution time should be randomized within the specified range
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ScheduledActionViewStatus
-
Current status of the scheduled action
no setterinherited
- updatedAt → DateTime?
-
When the scheduled action was last updated
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ScheduledActionView value)) → TResult -
Available on ScheduledActionView, provided by the ScheduledActionViewPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ScheduledActionView value)?) → TResult? -
Available on ScheduledActionView, provided by the ScheduledActionViewPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ScheduledActionView value)?, {required TResult orElse()}) → TResult -
Available on ScheduledActionView, provided by the ScheduledActionViewPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, int id, ScheduledActionViewAction action, Map< String, dynamic> ? eventData, String did, DateTime? executeAt, DateTime? executeAfter, DateTime? executeUntil, bool? randomizeExecution, String createdBy, DateTime createdAt, DateTime? updatedAt, ScheduledActionViewStatus status, DateTime? lastExecutedAt, String? lastFailureReason, int? executionEventId, Map<String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on ScheduledActionView, provided by the ScheduledActionViewPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ScheduledActionView to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, int id, ScheduledActionViewAction action, Map< String, dynamic> ? eventData, String did, DateTime? executeAt, DateTime? executeAfter, DateTime? executeUntil, bool? randomizeExecution, String createdBy, DateTime createdAt, DateTime? updatedAt, ScheduledActionViewStatus status, DateTime? lastExecutedAt, String? lastFailureReason, int? executionEventId, Map<String, dynamic> ? $unknown)) → TResult -
Available on ScheduledActionView, provided by the ScheduledActionViewPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, int id, ScheduledActionViewAction action, Map< String, dynamic> ? eventData, String did, DateTime? executeAt, DateTime? executeAfter, DateTime? executeUntil, bool? randomizeExecution, String createdBy, DateTime createdAt, DateTime? updatedAt, ScheduledActionViewStatus status, DateTime? lastExecutedAt, String? lastFailureReason, int? executionEventId, Map<String, dynamic> ? $unknown)?) → TResult? -
Available on ScheduledActionView, provided by the ScheduledActionViewPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>