import { SERVICE_CALLS } from './service-calls';
import { AbstractService } from '@iotize/tap';
export class FirmwareService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Firmware package
     *
     * LWM2M path: /5//0
     *
     * @deprecated
     * @tapVersion(">=")
     * @return
     */
    postPackage() {
        return this.serviceCallRunner.execute(this.postPackageCall());
    }
    /**
     *
     *
     * LWM2M path: /5//0
     *
     * @deprecated
     * @tapVersion(">=")
     * @return call options
     */
    postPackageCall() {
        const callOptions = Object.assign({}, this.resources.postPackage);
        return callOptions;
    }
    /**
     * Update
     *
     * LWM2M path: /5//2
     *
     * @deprecated
     * @tapVersion(">=")
     * @return
     */
    postUpdate() {
        return this.serviceCallRunner.execute(this.postUpdateCall());
    }
    /**
     *
     *
     * LWM2M path: /5//2
     *
     * @deprecated
     * @tapVersion(">=")
     * @return call options
     */
    postUpdateCall() {
        const callOptions = Object.assign({}, this.resources.postUpdate);
        return callOptions;
    }
    /**
     * Get state
     *
     * LWM2M path: /5//3
     *
     * @deprecated
     * @tapVersion(">=")
     * @return
     */
    getState() {
        return this.serviceCallRunner.execute(this.getStateCall());
    }
    /**
     *
     *
     * LWM2M path: /5//3
     *
     * @deprecated
     * @tapVersion(">=")
     * @return call options
     */
    getStateCall() {
        const callOptions = Object.assign({}, this.resources.getState);
        return callOptions;
    }
    /**
     * Check CRC
     *
     * LWM2M path: /5//6
     *
     * @deprecated
     * @tapVersion(">=")
     * @param data input
     * @return
     */
    postCrcCheck(
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.postCrcCheckCall(data));
    }
    /**
     *
     *
     * LWM2M path: /5//6
     *
     * @deprecated
     * @tapVersion(">=")
     * @param data input
     * @return call options
     */
    postCrcCheckCall(
    /*
     *
     */
    data) {
        const callOptions = Object.assign({}, this.resources.postCrcCheck);
        callOptions.body = data;
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS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