]> git.basschouten.com Git - openhab-addons.git/blob
e1c770d7034e5771b8a8e756f5ca35ffaa643c5d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.lametrictime.internal.api.local.dto;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Pojo for frame.
21  *
22  * @author Gregory Moyer - Initial contribution
23  */
24 public class Frame {
25     private String icon;
26     private String text;
27     @SerializedName("goalData")
28     private GoalData goalData;
29     @SerializedName("chartData")
30     private List<Integer> chartData;
31     private Integer index;
32
33     public String getIcon() {
34         return icon;
35     }
36
37     public void setIcon(String icon) {
38         this.icon = icon;
39     }
40
41     public Frame withIcon(String icon) {
42         this.icon = icon;
43         return this;
44     }
45
46     public String getText() {
47         return text;
48     }
49
50     public void setText(String text) {
51         this.text = text;
52     }
53
54     public Frame withText(String text) {
55         this.text = text;
56         return this;
57     }
58
59     public GoalData getGoalData() {
60         return goalData;
61     }
62
63     public void setGoalData(GoalData goalData) {
64         this.goalData = goalData;
65     }
66
67     public Frame withGoalData(GoalData goalData) {
68         this.goalData = goalData;
69         return this;
70     }
71
72     public List<Integer> getChartData() {
73         return chartData;
74     }
75
76     public void setChartData(List<Integer> chartData) {
77         this.chartData = chartData;
78     }
79
80     public Frame withChartData(List<Integer> chartData) {
81         this.chartData = chartData;
82         return this;
83     }
84
85     public Integer getIndex() {
86         return index;
87     }
88
89     public void setIndex(Integer index) {
90         this.index = index;
91     }
92
93     public Frame withIndex(Integer index) {
94         this.index = index;
95         return this;
96     }
97
98     @Override
99     public String toString() {
100         StringBuilder builder = new StringBuilder();
101         builder.append("Frame [icon=");
102         builder.append(icon);
103         builder.append(", text=");
104         builder.append(text);
105         builder.append(", goalData=");
106         builder.append(goalData);
107         builder.append(", chartData=");
108         builder.append(chartData);
109         builder.append(", index=");
110         builder.append(index);
111         builder.append("]");
112         return builder.toString();
113     }
114 }