UNPKG

instagram-graph-api

Version:

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

23 lines (22 loc) 772 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetMediaInsightsResponse = void 0; const AbstractGetInsightsResponse_1 = require("../../AbstractGetInsightsResponse"); const SimpleMetric_1 = require("../../data/insights/SimpleMetric"); /** * Class to represent responses to Media Insights requests. * * @author Tiago Grosso <tiagogrosso99@gmail.com> * @since 0.1.0 */ class GetMediaInsightsResponse extends AbstractGetInsightsResponse_1.AbstractGetInsightsResponse { /** * The constructor. * * @param body the body of the response. */ constructor(body) { super(body.data.map((elem) => new SimpleMetric_1.SimpleMetric(elem))); } } exports.GetMediaInsightsResponse = GetMediaInsightsResponse;