import { SERVICE_CALLS } from './service-calls';
import { AbstractService } from '@iotize/tap';
export class SlaveServerService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Get slave server protocol configuration (generic)
     *
     * LWM2M path: /1024//92
     *
     * @tapVersion(">=2.1")
     * @return
     */
    getProtocolConfiguration() {
        return this.serviceCallRunner.execute(this.getProtocolConfigurationCall());
    }
    /**
     *
     *
     * LWM2M path: /1024//92
     *
     * @tapVersion(">=2.1")
     * @return call options
     */
    getProtocolConfigurationCall() {
        const callOptions = Object.assign({}, this.resources.getProtocolConfiguration);
        return callOptions;
    }
    /**
     * Set slave server protocol configuration (temporary). Not available anymore.
     *
     * LWM2M path: /1024//92
     *
     * @tapVersion(">=1.0")
     * @param data input
     * @return
     */
    postProtocolConfiguration(
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.postProtocolConfigurationCall(data));
    }
    /**
     *
     *
     * LWM2M path: /1024//92
     *
     * @tapVersion(">=1.0")
     * @param data input
     * @return call options
     */
    postProtocolConfigurationCall(
    /*
     *
     */
    data) {
        const callOptions = Object.assign({}, this.resources.postProtocolConfiguration);
        callOptions.body = data;
        return callOptions;
    }
    /**
     * Write slave server protocol configuration
     *
     * LWM2M path: /1024//92
     *
     * @tapVersion(">=2.1")
     * @param data input
     * @return
     */
    putProtocolConfiguration(
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.putProtocolConfigurationCall(data));
    }
    /**
     *
     *
     * LWM2M path: /1024//92
     *
     * @tapVersion(">=2.1")
     * @param data input
     * @return call options
     */
    putProtocolConfigurationCall(
    /*
     *
     */
    data) {
        const callOptions = Object.assign({}, this.resources.putProtocolConfiguration);
        callOptions.body = data;
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL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