import { SERVICE_CALLS } from "./service-calls";
import { AbstractService } from "@iotize/tap";
export class TimeService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Get NTP server name
     *
     * LWM2M path: /1024//77
     *
     * @tapVersion(">=1.107")
     * @return
     */
    getNtpServer() {
        return this.serviceCallRunner.execute(this.getNtpServerCall());
    }
    /**
     *
     *
     * LWM2M path: /1024//77
     *
     * @tapVersion(">=1.107")
     * @return call options
     */
    getNtpServerCall() {
        const callOptions = Object.assign({}, this.resources.getNtpServer);
        return callOptions;
    }
    /**
     * Put NTP server name
     *
     * LWM2M path: /1024//77
     *
     * @tapVersion(">=1.107")
     * @param serverName input
     * @return
     */
    putNtpServer(
    /*
     *
     */
    serverName) {
        return this.serviceCallRunner.execute(this.putNtpServerCall(serverName));
    }
    /**
     *
     *
     * LWM2M path: /1024//77
     *
     * @tapVersion(">=1.107")
     * @param serverName input
     * @return call options
     */
    putNtpServerCall(
    /*
     *
     */
    serverName) {
        const callOptions = Object.assign({}, this.resources.putNtpServer);
        callOptions.body = serverName;
        return callOptions;
    }
    /**
     * Get Tap time zone
     *
     * LWM2M path: /1024//78
     *
     * @tapVersion(">=1.107")
     * @return
     */
    getTimeZone() {
        return this.serviceCallRunner.execute(this.getTimeZoneCall());
    }
    /**
     *
     *
     * LWM2M path: /1024//78
     *
     * @tapVersion(">=1.107")
     * @return call options
     */
    getTimeZoneCall() {
        const callOptions = Object.assign({}, this.resources.getTimeZone);
        return callOptions;
    }
    /**
     * Put Tap time zone
     *
     * LWM2M path: /1024//78
     *
     * @tapVersion(">=1.107")
     * @param serverName input
     * @return
     */
    putTimeZone(
    /*
     *
     */
    serverName) {
        return this.serviceCallRunner.execute(this.putTimeZoneCall(serverName));
    }
    /**
     *
     *
     * LWM2M path: /1024//78
     *
     * @tapVersion(">=1.107")
     * @param serverName input
     * @return call options
     */
    putTimeZoneCall(
    /*
     *
     */
    serverName) {
        const callOptions = Object.assign({}, this.resources.putTimeZone);
        callOptions.body = serverName;
        return callOptions;
    }
    /**
     * Get Tap local time
     *
     * LWM2M path: /1024//79
     *
     * @tapVersion(">=1.107")
     * @return
     */
    getLocalTime() {
        return this.serviceCallRunner.execute(this.getLocalTimeCall());
    }
    /**
     *
     *
     * LWM2M path: /1024//79
     *
     * @tapVersion(">=1.107")
     * @return call options
     */
    getLocalTimeCall() {
        const callOptions = Object.assign({}, this.resources.getLocalTime);
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC90aW1lLyIsInNvdXJjZXMiOlsibGliL2dlbmVyYXRlZC9zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUdoRCxPQUFPLEVBQUUsZUFBZSxFQUFtQixNQUFNLGFBQWEsQ0FBQztBQUUvRCxNQUFNLE9BQU8sV0FBWSxTQUFRLGVBQWU7SUFBaEQ7O1FBQ1MsY0FBUyxHQUFHLGFBQWEsQ0FBQztJQStKbkMsQ0FBQztJQTdKQzs7Ozs7OztPQU9HO0lBQ0gsWUFBWTtRQUNWLE9BQU8sSUFBSSxDQUFDLGlCQUFpQixDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLEVBQUUsQ0FBQyxDQUFDO0lBQ2pFLENBQUM7SUFFRDs7Ozs7OztPQU9HO0lBQ0gsZ0JBQWdCO1FBQ2QsTUFBTSxXQUFXLHFCQUFRLElBQUksQ0FBQyxTQUFTLENBQUMsWUFBWSxDQUFFLENBQUM7UUFFdkQsT0FBTyxXQUFXLENBQUM7SUFDckIsQ0FBQztJQUVEOzs7Ozs7OztPQVFHO0lBQ0gsWUFBWTtJQUNWOztPQUVHO0lBQ0gsVUFBa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