2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.hyperion.internal.protocol.ng;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link Priority} is a POJO for priority information in the Hyperion.ng server.
20 * @author Daniel Walters - Initial contribution
22 public class Priority {
24 @SerializedName("active")
25 private Boolean active;
27 @SerializedName("componentId")
28 private String componentId;
30 @SerializedName("duration_ms")
31 private Integer durationMs;
33 @SerializedName("origin")
34 private String origin;
36 @SerializedName("owner")
39 @SerializedName("priority")
40 private Integer priority;
42 @SerializedName("visible")
43 private Boolean visible;
45 @SerializedName("value")
48 public Boolean isActive() {
52 public void setActive(Boolean active) {
56 public String getComponentId() {
60 public void setComponentId(String componentId) {
61 this.componentId = componentId;
64 public Integer getDurationMs() {
68 public void setDurationMs(Integer durationMs) {
69 this.durationMs = durationMs;
72 public String getOrigin() {
76 public void setOrigin(String origin) {
80 public String getOwner() {
84 public void setOwner(String owner) {
88 public Integer getPriority() {
92 public void setPriority(Integer priority) {
93 this.priority = priority;
96 public Boolean isVisible() {
100 public void setVisible(Boolean visible) {
101 this.visible = visible;
104 public Value getValue() {
108 public void setValue(Value value) {