All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.telekom.m2m.cot.restsdk.library.devicemanagement.RequiredAvailability Maven / Gradle / Ivy

package com.telekom.m2m.cot.restsdk.library.devicemanagement;

import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.telekom.m2m.cot.restsdk.library.Fragment;


public class RequiredAvailability implements Fragment {

    private int responseInterval;


    public RequiredAvailability(int responseInterval) {
        this.responseInterval = responseInterval;
    }


    public int getResponseInterval() {
        return responseInterval;
    }


    @Override
    public String getId() {
        return "c8y_RequiredAvailability";
    }

    @Override
    public JsonElement getJson() {
        JsonObject intervalObject = new JsonObject();
        intervalObject.addProperty("responseInterval", responseInterval);

        return intervalObject;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy