instagram-graph-api
Version:
A library to help perform requests to the Instagram Graph API.
31 lines (30 loc) • 663 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractResponse = void 0;
/**
* An abstract class to represent a response from the Instagram Graph API.
*
* @param T The type of data in the response.
*
* @author Tiago Grosso <tiagogrosso99@gmail.com>
* @since 0.2.0
*/
class AbstractResponse {
/**
* The constructor.
*
* @param data the response data.
*/
constructor(data) {
this.data = data;
}
/**
* Gets the response data.
*
* @returns the response data.
*/
getData() {
return this.data;
}
}
exports.AbstractResponse = AbstractResponse;