SubjectStatusView constructor
- @JsonSerializable(includeIfNull: false)
const
SubjectStatusView(
{ - @Default('tools.ozone.moderation.defs#subjectStatusView') String $type,
- required int id,
- @USubjectStatusViewSubjectConverter() required USubjectStatusViewSubject subject,
- @USubjectStatusViewHostingConverter() USubjectStatusViewHosting? hosting,
- List<String>? subjectBlobCids,
- String? subjectRepoHandle,
- required DateTime updatedAt,
- required DateTime createdAt,
- @SubjectReviewStateConverter() required SubjectReviewState reviewState,
- int? priorityScore,
- DateTime? muteUntil,
- DateTime? muteReportingUntil,
- String? lastReviewedBy,
- DateTime? lastReviewedAt,
- DateTime? lastReportedAt,
- DateTime? lastAppealedAt,
- bool? takendown,
- bool? appealed,
- DateTime? suspendUntil,
- List<String>? tags,
- @AccountStatsConverter() AccountStats? accountStats,
- @RecordsStatsConverter() RecordsStats? recordsStats,
- @SubjectStatusViewAgeAssuranceStateConverter() SubjectStatusViewAgeAssuranceState? ageAssuranceState,
- @SubjectStatusViewAgeAssuranceUpdatedByConverter() SubjectStatusViewAgeAssuranceUpdatedBy? ageAssuranceUpdatedBy,
- Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory SubjectStatusView({
@Default('tools.ozone.moderation.defs#subjectStatusView') String $type,
required int id,
@USubjectStatusViewSubjectConverter()
required USubjectStatusViewSubject subject,
@USubjectStatusViewHostingConverter() USubjectStatusViewHosting? hosting,
List<String>? subjectBlobCids,
String? subjectRepoHandle,
/// Timestamp referencing when the last update was made to the moderation status of the subject
required DateTime updatedAt,
/// Timestamp referencing the first moderation status impacting event was emitted on the subject
required DateTime createdAt,
@SubjectReviewStateConverter() required SubjectReviewState reviewState,
/// Sticky comment on the subject.
String? comment,
/// Numeric value representing the level of priority. Higher score means higher priority.
int? priorityScore,
DateTime? muteUntil,
DateTime? muteReportingUntil,
String? lastReviewedBy,
DateTime? lastReviewedAt,
DateTime? lastReportedAt,
/// Timestamp referencing when the author of the subject appealed a moderation action
DateTime? lastAppealedAt,
bool? takendown,
/// True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators.
bool? appealed,
DateTime? suspendUntil,
List<String>? tags,
/// Statistics related to the account subject
@AccountStatsConverter() AccountStats? accountStats,
/// Statistics related to the record subjects authored by the subject's account
@RecordsStatsConverter() RecordsStats? recordsStats,
/// Current age assurance state of the subject.
@SubjectStatusViewAgeAssuranceStateConverter()
SubjectStatusViewAgeAssuranceState? ageAssuranceState,
/// Whether or not the last successful update to age assurance was made by the user or admin.
@SubjectStatusViewAgeAssuranceUpdatedByConverter()
SubjectStatusViewAgeAssuranceUpdatedBy? ageAssuranceUpdatedBy,
Map<String, dynamic>? $unknown,
}) = _SubjectStatusView;