ScheduledActionView constructor
- @JsonSerializable.new(includeIfNull: false)
const
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,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory ScheduledActionView({
@Default('tools.ozone.moderation.defs#scheduledActionView') String $type,
/// Auto-incrementing row ID
required int id,
/// Type of action to be executed
@ScheduledActionViewActionConverter()
required ScheduledActionViewAction action,
Map<String, dynamic>? eventData,
/// Subject DID for the action
required String did,
/// Exact time to execute the action
DateTime? executeAt,
/// Earliest time to execute the action (for randomized scheduling)
DateTime? executeAfter,
/// Latest time to execute the action (for randomized scheduling)
DateTime? executeUntil,
/// Whether execution time should be randomized within the specified range
bool? randomizeExecution,
/// DID of the user who created this scheduled action
required String createdBy,
/// When the scheduled action was created
required DateTime createdAt,
/// When the scheduled action was last updated
DateTime? updatedAt,
/// Current status of the scheduled action
@ScheduledActionViewStatusConverter()
required ScheduledActionViewStatus status,
/// When the action was last attempted to be executed
DateTime? lastExecutedAt,
/// Reason for the last execution failure
String? lastFailureReason,
/// ID of the moderation event created when action was successfully executed
int? executionEventId,
Map<String, dynamic>? $unknown,
}) = _ScheduledActionView;