/**
 * @fileoverview added by tsickle
 * Generated from: business-component/bcac-table/table.service.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common/http";
var TableService = /** @class */ (function () {
    function TableService(httpClient) {
        this.httpClient = httpClient;
    }
    /**
     * @param {?} url
     * @param {?} method
     * @param {?} token
     * @param {?} param
     * @return {?}
     */
    TableService.prototype.accessInterface = /**
     * @param {?} url
     * @param {?} method
     * @param {?} token
     * @param {?} param
     * @return {?}
     */
    function (url, method, token, param) {
        switch (method) {
            case "get":
                return this.httpClient.get(url, token);
            case "post":
                return this.httpClient.post(url, param, token);
            default:
                return this.httpClient.get(url, token);
        }
    };
    TableService.decorators = [
        { type: Injectable, args: [{
                    providedIn: 'root'
                },] }
    ];
    /** @nocollapse */
    TableService.ctorParameters = function () { return [
        { type: HttpClient }
    ]; };
    /** @nocollapse */ TableService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function TableService_Factory() { return new TableService(i0.ɵɵinject(i1.HttpClient)); }, token: TableService, providedIn: "root" });
    return TableService;
}());
export { TableService };
if (false) {
    /**
     * @type {?}
     * @private
     */
    TableService.prototype.httpClient;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2JjYWMtbGliLyIsInNvdXJjZXMiOlsiYnVzaW5lc3MtY29tcG9uZW50L2JjYWMtdGFibGUvdGFibGUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDOzs7QUFFbEQ7SUFLRSxzQk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