getMessages method

Future<XRPCResponse<GetMessagesOutput>> getMessages({
  1. required String convoId,
  2. int? limit,
  3. String? cursor,
  4. Map<String, String>? $unknown,
  5. Map<String, String>? $headers,
  6. GetClient? $client,
})

Implementation

Future<XRPCResponse<GetMessagesOutput>> getMessages({
  required String convoId,
  int? limit,
  String? cursor,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<GetMessagesOutput>(
      ns.chatBskyConvoGetMessages,
      headers: $headers,
      parameters: {
        'convoId': convoId,
        if (limit != null) 'limit': limit.toString(),
        if (cursor != null) 'cursor': cursor,
        ...?$unknown,
      },
      to: const GetMessagesOutputConverter().fromJson,
      client: $client,
    );