getCommentContentProperties method
Retrieves Content Properties attached to a specified comment.
Permissions required: Permission to view the comment.
Implementation
Future<MultiEntityResult<ContentProperty>> getCommentContentProperties(
{required int commentId,
String? key,
String? sort,
String? cursor,
int? limit}) async {
return MultiEntityResult.fromJson(
await _client.send(
'get',
'comments/{comment-id}/properties',
pathParameters: {
'comment-id': '$commentId',
},
queryParameters: {
if (key != null) 'key': key,
if (sort != null) 'sort': sort,
if (cursor != null) 'cursor': cursor,
if (limit != null) 'limit': '$limit',
},
),
reviver: (v) => ContentProperty.fromJson(v as Map<String, Object?>),
);
}