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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NlcnZpY2UvaW1wbC90aW1lL3NyYy9saWIvZ2VuZXJhdGVkL3NlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBR2hELE9BQU8sRUFBRSxlQUFlLEVBQW1CLE1BQU0sYUFBYSxDQUFDO0FBRS9ELE1BQU0sT0FBTyxXQUFZLFNBQVEsZUFBZTtJQUFoRDs7UUFDUyxjQUFTLEdBQUcsYUFBYSxDQUFDO0lBK0puQyxDQUFDO0lBN0pDOzs7Ozs7O09BT0c7SUFDSCxZQUFZO1FBQ1YsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxnQkFBZ0IsRUFBRSxDQUFDLENBQUM7SUFDakUsQ0FBQztJQUVEOzs7Ozs7O09BT0c7SUFDSCxnQkFBZ0I7UUFDZCxNQUFNLFdBQVcscUJBQVEsSUFBSSxDQUFDLFNBQVMsQ0FBQyxZQUFZLENBQUUsQ0FBQztRQUV2RCxPQUFPLFdBQVcsQ0FBQztJQUNyQixDQUFDO0lBRUQ7Ozs7Ozs7O09BUUc7SUFDSCxZQUFZO0lBQ1Y7O09BRU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