ReportCreateActivityInput constructor

const ReportCreateActivityInput({
  1. int? reportId,
  2. int? eventId,
  3. @UReportCreateActivityActivityConverter() required UReportCreateActivityActivity activity,
  4. String? internalNote,
  5. String? publicNote,
  6. @Default.new(false) bool isAutomated,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ReportCreateActivityInput({
  /// ID of the report to record activity on. Exactly one of reportId or eventId must be provided.
  int? reportId,

  /// ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.
  int? eventId,
  @UReportCreateActivityActivityConverter()
  required UReportCreateActivityActivity activity,

  /// Optional moderator-only note. Not visible to reporters.
  String? internalNote,

  /// Optional public-facing note, potentially visible to the reporter.
  String? publicNote,

  /// Set true when this activity is triggered by an automated process. Defaults to false.
  @Default(false) bool isAutomated,

  Map<String, dynamic>? $unknown,
}) = _ReportCreateActivityInput;