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

com.digitaldan.harmony.config.Activity Maven / Gradle / Ivy

package com.digitaldan.harmony.config;

import static java.lang.String.format;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.google.gson.annotations.SerializedName;

public class Activity {
    private String label;
    private String suggestedDisplay;
    private Integer id;
    private String activityTypeDisplayName;
    private List controlGroup = new ArrayList<>();
    private Integer activityOrder;
    @SerializedName("isTuningDefault")
    private boolean tuningDefault;
    private Map fixit = new HashMap<>();
    private String type;
    private String icon;
    private String baseImageUri;
    private Status status = Status.UNKNOWN;

    public enum Status {
        HUB_IS_OFF,
        ACTIVITY_IS_STARTING,
        ACTIVITY_IS_STARTED,
        HUB_IS_TURNING_OFF,
        UNKNOWN
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getSuggestedDisplay() {
        return suggestedDisplay;
    }

    public void setSuggestedDisplay(String suggestedDisplay) {
        this.suggestedDisplay = suggestedDisplay;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActivityTypeDisplayName() {
        return activityTypeDisplayName;
    }

    public void setActivityTypeDisplayName(String activityTypeDisplayName) {
        this.activityTypeDisplayName = activityTypeDisplayName;
    }

    public List getControlGroup() {
        return controlGroup;
    }

    public void setControlGroup(List controlGroup) {
        this.controlGroup = controlGroup;
    }

    public Integer getActivityOrder() {
        return activityOrder;
    }

    public void setActivityOrder(Integer activityOrder) {
        this.activityOrder = activityOrder;
    }

    public boolean isTuningDefault() {
        return tuningDefault;
    }

    public void setTuningDefault(boolean tuningDefault) {
        this.tuningDefault = tuningDefault;
    }

    public Map getFixit() {
        return fixit;
    }

    public void setFixit(Map fixit) {
        this.fixit = fixit;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getBaseImageUri() {
        return baseImageUri;
    }

    public void setBaseImageUri(String baseImageUri) {
        this.baseImageUri = baseImageUri;
    }

    @Override
    public String toString() {
        return format("Activity[%d]:%s", getId(), getLabel());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy