UNPKG

instagram-graph-api

Version:

A library to help perform requests to the Instagram Graph API.

86 lines (85 loc) 2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetPageInfoResponse = void 0; const AbstractResponse_1 = require("../../AbstractResponse"); /** * Class that represents a response from a Page Info request. * * @author Tiago Grosso <tiagogrosso99@gmail.com> * @since 0.1.0 */ class GetPageInfoResponse extends AbstractResponse_1.AbstractResponse { /** * Gets the id of the page. * * @returns the id of the page. */ getId() { return this.data.id; } /** * Gets the biography of the page. * * @returns the biography of the page. */ getBiography() { return this.data.biography; } /** * Gets the instragram id of the page. * * @returns the instragram id of the page. */ getIgId() { return this.data.ig_id; } /** * Gets the number of page followers. * * @returns the number of page followers. */ getFollowers() { return this.data.followers_count; } /** * Gets the number of page follows. * * @returns the number of page follows. */ getFollows() { return this.data.follows_count; } /** * Gets the number of media objects in the page. * * @returns the number of media objects in the page. */ getMediaCount() { return this.data.media_count; } /** * Gets the name of the page. * * @returns the name of the page. */ getName() { return this.data.name; } /** * Gets the URL of the profile picture of the page. * * @returns the URL of the profile picture of the page. */ getProfilePictureUrl() { return this.data.profile_picture_url; } /** * Gets the username of the page. * * @returns the username of the page. */ getUsername() { return this.data.username; } } exports.GetPageInfoResponse = GetPageInfoResponse;