toolsOzoneModerationQueryEvents function
Future<XRPCResponse<ModerationQueryEventsOutput> >
toolsOzoneModerationQueryEvents({
- List<
String> ? types, - String? createdBy,
- String? sortDirection,
- DateTime? createdAfter,
- DateTime? createdBefore,
- String? subject,
- List<
String> ? collections, - ModerationQueryEventsSubjectType? subjectType,
- bool? includeAllUserRecords,
- int? limit,
- bool? hasComment,
- String? comment,
- List<
String> ? addedLabels, - List<
String> ? removedLabels, - List<
String> ? addedTags, - List<
String> ? removedTags, - List<
String> ? reportTypes, - List<
String> ? policies, - List<
String> ? modTool, - String? batchId,
- ModerationQueryEventsAgeAssuranceState? ageAssuranceState,
- String? cursor,
- required ServiceContext $ctx,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
List moderation events related to a subject.
Implementation
Future<XRPCResponse<ModerationQueryEventsOutput>>
toolsOzoneModerationQueryEvents({
List<String>? types,
String? createdBy,
String? sortDirection,
DateTime? createdAfter,
DateTime? createdBefore,
String? subject,
List<String>? collections,
ModerationQueryEventsSubjectType? subjectType,
bool? includeAllUserRecords,
int? limit,
bool? hasComment,
String? comment,
List<String>? addedLabels,
List<String>? removedLabels,
List<String>? addedTags,
List<String>? removedTags,
List<String>? reportTypes,
List<String>? policies,
List<String>? modTool,
String? batchId,
ModerationQueryEventsAgeAssuranceState? ageAssuranceState,
String? cursor,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.get(
ns.toolsOzoneModerationQueryEvents,
headers: $headers,
parameters: {
...?$unknown,
if (types != null) 'types': types,
if (createdBy != null) 'createdBy': createdBy,
if (sortDirection != null) 'sortDirection': sortDirection,
if (createdAfter != null) 'createdAfter': iso8601(createdAfter),
if (createdBefore != null) 'createdBefore': iso8601(createdBefore),
if (subject != null) 'subject': subject,
if (collections != null) 'collections': collections,
if (subjectType != null) 'subjectType': subjectType.toJson(),
if (includeAllUserRecords != null)
'includeAllUserRecords': includeAllUserRecords,
if (limit != null) 'limit': limit,
if (hasComment != null) 'hasComment': hasComment,
if (comment != null) 'comment': comment,
if (addedLabels != null) 'addedLabels': addedLabels,
if (removedLabels != null) 'removedLabels': removedLabels,
if (addedTags != null) 'addedTags': addedTags,
if (removedTags != null) 'removedTags': removedTags,
if (reportTypes != null) 'reportTypes': reportTypes,
if (policies != null) 'policies': policies,
if (modTool != null) 'modTool': modTool,
if (batchId != null) 'batchId': batchId,
if (ageAssuranceState != null)
'ageAssuranceState': ageAssuranceState.toJson(),
if (cursor != null) 'cursor': cursor,
},
to: const ModerationQueryEventsOutputConverter().fromJson,
);