instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
27 lines (26 loc) • 736 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeleteCommentRequest = void 0;
const AbstractCommentRequest_1 = require("./AbstractCommentRequest");
const CommentUpdateResponse_1 = require("./CommentUpdateResponse");
/**
* Request to delete a comment.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.6.0
*/
class DeleteCommentRequest extends AbstractCommentRequest_1.AbstractCommentRequest {
/**
* @inheritdoc
*/
parseResponse(response) {
return new CommentUpdateResponse_1.CommentUpdateResponse(response.data);
}
/**
* @inheritdoc
*/
method() {
return 'DELETE';
}
}
exports.DeleteCommentRequest = DeleteCommentRequest;