Class GetObjectCommentsResponse

Class that represents a response from requests to get the comments on an object.

Author

Tiago Grosso tiagogrosso99@gmail.com

Since

0.7.0

Hierarchy

Constructors

Properties

data: CommentData[]

The response data.

Methods

  • Gets an array with whether each of the comments is hidden. If a comment object does not have the 'hidden' field, 'undefined' is returned for that object.

    Returns

    an array with whether each of the comments is hidden.

    Returns (undefined | boolean)[]

  • Gets a map from the id of the comments to whether they are hidden. If a comment object does not have the 'hidden' field, 'undefined' is returned for that object.

    Returns

    a map from the id of the comments to whether it is hidden.

    Returns Map<string, undefined | boolean>

  • Gets an array with the like_count of the all the comments. If a comment object does not have the 'like_count' field, 'undefined' is returned for that object.

    Returns

    an array with the like_count of the all the comments.

    Returns (undefined | number)[]

  • Gets a map from the id of the comments to their like_count. If a comment object does not have the 'like_count' field, 'undefined' is returned for that object.

    Returns

    a map from the id of the comments to their 'like_count'.

    Returns Map<string, undefined | number>

  • Gets an array with the media of the all the comments. If a comment object does not have the 'media' field, 'undefined' is returned for that object.

    Returns

    an array with the media of the all the comments.

    Returns (undefined | InnerId)[]

  • Gets a map from the id of the comments to their media. If a comment object does not have the 'media' field, 'undefined' is returned for that object.

    Returns

    a map from the id of the comments to their 'media'.

    Returns Map<string, undefined | InnerId>

  • Gets an array with the replies of the all the comments. If a comment object does not have the 'replies' field, 'undefined' is returned for that object. The replies field can only be returned for top level comments.

    Returns

    an array with the replies of the all the comments.

    Returns (undefined | CommentReplyData[])[]

  • Gets a map from the id of the comments to their replies. If a comment object does not have the 'replies' field, 'undefined' is returned for that object. The replies field can only be returned for top level comments.

    Returns

    a map from the id of the comments to their 'replies'.

    Returns Map<string, undefined | CommentReplyData[]>

  • Gets an array with the text of the all the comments. If a comment object does not have the 'text' field, 'undefined' is returned for that object.

    Returns

    an array with the text of the all the comments.

    Returns (undefined | string)[]

  • Gets a map from the id of the comments to their text. If a comment object does not have the 'text' field, 'undefined' is returned for that object.

    Returns

    a map from the id of the comments to their 'text'.

    Returns Map<string, undefined | string>

  • Gets an array with the timestamp of the all the comments. If a comment object does not have the 'timestamp' field, 'undefined' is returned for that object.

    Returns

    an array with the timestamp of the all the comments.

    Returns (undefined | string)[]

  • Gets a map from the id of the comments to their timestamp. If a comment object does not have the 'timestamp' field, 'undefined' is returned for that object.

    Returns

    a map from the id of the comments to their 'timestamp'.

    Returns Map<string, undefined | string>

  • Gets an array with the username of the all the comments. If a media object does not have the 'username' field, 'undefined' is returned for that object.

    Returns

    an array with the username of the all the comments.

    Returns (undefined | string)[]

  • Gets a map from the id of the comments to their username. If a media object does not have the 'username' field, 'undefined' is returned for that object.

    Returns

    a map from the id of the comments to their 'username'.

    Returns Map<string, undefined | string>

  • Gets a map from the id of the comments to their user. If a media object does not have the 'user' field, 'undefined' is returned for that object.

    Returns

    a map from the id of the comments to their 'user'.

    Returns Map<string, undefined | InnerId>

Generated using TypeDoc