"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var robin_1 = require("@simplus/robin");
var DashboardsContainerRobin = /** @class */ (function (_super) {
    __extends(DashboardsContainerRobin, _super);
    function DashboardsContainerRobin() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     *  Robin to create new dashboard container
     *  @param {number} size - Size of dashboard container
     *  @param {DashboardList[]} type - Array of dashboardList
     */
    DashboardsContainerRobin.prototype.createDashboardContainer = function (size, dashboards) {
        this.post('createDashboardContainer', "", {
            'size': size,
            'dashboards': dashboards
        });
    };
    /**
     *  Robin to update existing dashboard container
     *  @param {string} id - id for the dashboard container to update
     *  @param {number} size - Size of dashboard container
     *  @param {DashboardList[]} type - Array of dashboardList
     */
    DashboardsContainerRobin.prototype.updateDashboardContainer = function (id, size, dashboards) {
        this.put('updateDashboardContainer', "" + id, {
            'size': size,
            'dashboards': dashboards
        });
    };
    /**
     *  Robin to delete dashboard container
     *  @param {string} id - id for the dashboard to delete
     */
    DashboardsContainerRobin.prototype.deleteDashboardContainer = function (id) {
        this.delete('deleteDashboardContainer', "" + id);
    };
    return DashboardsContainerRobin;
}(robin_1.CollectionRobin));
exports.DashboardsContainerRobin = DashboardsContainerRobin;
