getObjectsSharedInRoom method

Future<DynamiteResponse<ChatGetObjectsSharedInRoomResponseApplicationJson, ChatChatGetObjectsSharedInRoomHeaders>> getObjectsSharedInRoom({
  1. required String token,
  2. required String objectType,
  3. ChatGetObjectsSharedInRoomApiVersion? apiVersion,
  4. int? lastKnownMessageId,
  5. int? limit,
  6. bool? oCSAPIRequest,
})

Get objects that are shared in the room.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • apiVersion Defaults to "v1".
  • token
  • objectType Type of the objects.
  • lastKnownMessageId ID of the last known message. Defaults to 0.
  • limit Maximum number of objects. Defaults to 100.
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: List of shared objects messages returned

See:

Implementation

Future<_i1.DynamiteResponse<ChatGetObjectsSharedInRoomResponseApplicationJson, ChatChatGetObjectsSharedInRoomHeaders>>
    getObjectsSharedInRoom({
  required String token,
  required String objectType,
  ChatGetObjectsSharedInRoomApiVersion? apiVersion,
  int? lastKnownMessageId,
  int? limit,
  bool? oCSAPIRequest,
}) async {
  final _request = $getObjectsSharedInRoom_Request(
    token: token,
    objectType: objectType,
    apiVersion: apiVersion,
    lastKnownMessageId: lastKnownMessageId,
    limit: limit,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $getObjectsSharedInRoom_Serializer();
  return _i1.ResponseConverter<ChatGetObjectsSharedInRoomResponseApplicationJson,
          ChatChatGetObjectsSharedInRoomHeaders>(_serializer)
      .convert(_response);
}