queryEvents method
Future<XRPCResponse<QueryEventsOutput> >
queryEvents({
- List<
String> ? types, - String? createdBy,
- String? sortDirection,
- DateTime? createdAfter,
- DateTime? createdBefore,
- String? subject,
- bool? includeAllUserRecords,
- int? limit,
- bool? hasComment,
- String? comment,
- List<
String> ? addedLabels, - List<
String> ? removedLabels, - List<
String> ? addedTags, - List<
String> ? removedTags, - List<
String> ? reportTypes, - String? cursor,
- Map<
String, String> ? $unknown, - Map<
String, String> ? $headers, - GetClient? $client,
List moderation events related to a subject.
https://atprotodart.com/docs/lexicons/tools/ozone/moderation/queryEvents
Implementation
Future<XRPCResponse<QueryEventsOutput>> queryEvents({
List<String>? types,
String? createdBy,
String? sortDirection,
DateTime? createdAfter,
DateTime? createdBefore,
String? subject,
bool? includeAllUserRecords,
int? limit,
bool? hasComment,
String? comment,
List<String>? addedLabels,
List<String>? removedLabels,
List<String>? addedTags,
List<String>? removedTags,
List<String>? reportTypes,
String? cursor,
Map<String, String>? $unknown,
Map<String, String>? $headers,
GetClient? $client,
}) async =>
await _ctx.get<QueryEventsOutput>(
ns.toolsOzoneModerationQueryEvents,
headers: $headers,
parameters: {
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 (includeAllUserRecords != null)
'includeAllUserRecords': includeAllUserRecords.toString(),
if (limit != null) 'limit': limit.toString(),
if (hasComment != null) 'hasComment': hasComment.toString(),
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 (cursor != null) 'cursor': cursor,
...?$unknown,
},
to: const QueryEventsOutputConverter().fromJson,
client: $client,
);