queryStatuses method

Future<XRPCResponse<QueryStatusesOutput>> queryStatuses({
  1. bool? includeAllUserRecords,
  2. String? subject,
  3. String? comment,
  4. DateTime? reportedAfter,
  5. DateTime? reportedBefore,
  6. DateTime? reviewedAfter,
  7. DateTime? reviewedBefore,
  8. bool? includeMuted,
  9. bool? onlyMuted,
  10. String? reviewState,
  11. List<String>? ignoreSubjects,
  12. String? lastReviewedBy,
  13. String? sortField,
  14. String? sortDirection,
  15. bool? takendown,
  16. bool? appealed,
  17. int? limit,
  18. List<String>? tags,
  19. List<String>? excludeTags,
  20. String? cursor,
  21. Map<String, String>? $unknown,
  22. Map<String, String>? $headers,
  23. GetClient? $client,
})

View moderation statuses of subjects (record or repo).

https://atprotodart.com/docs/lexicons/tools/ozone/moderation/queryStatuses

Implementation

Future<XRPCResponse<QueryStatusesOutput>> queryStatuses({
  bool? includeAllUserRecords,
  String? subject,
  String? comment,
  DateTime? reportedAfter,
  DateTime? reportedBefore,
  DateTime? reviewedAfter,
  DateTime? reviewedBefore,
  bool? includeMuted,
  bool? onlyMuted,
  String? reviewState,
  List<String>? ignoreSubjects,
  String? lastReviewedBy,
  String? sortField,
  String? sortDirection,
  bool? takendown,
  bool? appealed,
  int? limit,
  List<String>? tags,
  List<String>? excludeTags,
  String? cursor,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<QueryStatusesOutput>(
      ns.toolsOzoneModerationQueryStatuses,
      headers: $headers,
      parameters: {
        if (includeAllUserRecords != null)
          'includeAllUserRecords': includeAllUserRecords.toString(),
        if (subject != null) 'subject': subject,
        if (comment != null) 'comment': comment,
        if (reportedAfter != null) 'reportedAfter': iso8601(reportedAfter),
        if (reportedBefore != null) 'reportedBefore': iso8601(reportedBefore),
        if (reviewedAfter != null) 'reviewedAfter': iso8601(reviewedAfter),
        if (reviewedBefore != null) 'reviewedBefore': iso8601(reviewedBefore),
        if (includeMuted != null) 'includeMuted': includeMuted.toString(),
        if (onlyMuted != null) 'onlyMuted': onlyMuted.toString(),
        if (reviewState != null) 'reviewState': reviewState,
        if (ignoreSubjects != null) 'ignoreSubjects': ignoreSubjects,
        if (lastReviewedBy != null) 'lastReviewedBy': lastReviewedBy,
        if (sortField != null) 'sortField': sortField,
        if (sortDirection != null) 'sortDirection': sortDirection,
        if (takendown != null) 'takendown': takendown.toString(),
        if (appealed != null) 'appealed': appealed.toString(),
        if (limit != null) 'limit': limit.toString(),
        if (tags != null) 'tags': tags,
        if (excludeTags != null) 'excludeTags': excludeTags,
        if (cursor != null) 'cursor': cursor,
        ...?$unknown,
      },
      to: const QueryStatusesOutputConverter().fromJson,
      client: $client,
    );