chatBskyModerationGetMessageContext function

Future<XRPCResponse<ModerationGetMessageContextOutput>> chatBskyModerationGetMessageContext({
  1. String? convoId,
  2. required String messageId,
  3. int? before,
  4. int? after,
  5. int? maxInterleavedSystemMessages,
  6. required ServiceContext $ctx,
  7. String? $service,
  8. Map<String, String>? $headers,
  9. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<ModerationGetMessageContextOutput>>
chatBskyModerationGetMessageContext({
  String? convoId,
  required String messageId,
  int? before,
  int? after,
  int? maxInterleavedSystemMessages,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.chatBskyModerationGetMessageContext,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (convoId != null) 'convoId': convoId,
    'messageId': messageId,
    if (before != null) 'before': before,
    if (after != null) 'after': after,
    if (maxInterleavedSystemMessages != null)
      'maxInterleavedSystemMessages': maxInterleavedSystemMessages,
  },
  to: const ModerationGetMessageContextOutputConverter().fromJson,
);