instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
30 lines (29 loc) • 846 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetMediaChildrenResponse = void 0;
const AbstractResponse_1 = require("../../../../main/requests/AbstractResponse");
/**
* Class that represents a response from a Get Media Children Response.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.5.0
*/
class GetMediaChildrenResponse extends AbstractResponse_1.AbstractResponse {
/**
* The constructor.
*
* @param body the body of the response.
*/
constructor(body) {
super(body.data);
}
/**
* Gets an array with the ids of all the comments.
*
* @returns an array with the ids of all the comments.
*/
getIds() {
return this.data.map((elem) => elem.id);
}
}
exports.GetMediaChildrenResponse = GetMediaChildrenResponse;