]> git.basschouten.com Git - openhab-addons.git/blob
4e490830e293c6217f05fcc8360021fd79a689ef
[openhab-addons.git] /
1 /**
2  * Copyright 2017-2018 Gregory Moyer and contributors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.openhab.binding.lametrictime.api.local.model;
17
18 import java.util.List;
19
20 import com.google.gson.annotations.SerializedName;
21
22 public class Frame
23 {
24     private String icon;
25     private String text;
26     @SerializedName("goalData")
27     private GoalData goalData;
28     @SerializedName("chartData")
29     private List<Integer> chartData;
30     private Integer index;
31
32     public String getIcon()
33     {
34         return icon;
35     }
36
37     public void setIcon(String icon)
38     {
39         this.icon = icon;
40     }
41
42     public Frame withIcon(String icon)
43     {
44         this.icon = icon;
45         return this;
46     }
47
48     public String getText()
49     {
50         return text;
51     }
52
53     public void setText(String text)
54     {
55         this.text = text;
56     }
57
58     public Frame withText(String text)
59     {
60         this.text = text;
61         return this;
62     }
63
64     public GoalData getGoalData()
65     {
66         return goalData;
67     }
68
69     public void setGoalData(GoalData goalData)
70     {
71         this.goalData = goalData;
72     }
73
74     public Frame withGoalData(GoalData goalData)
75     {
76         this.goalData = goalData;
77         return this;
78     }
79
80     public List<Integer> getChartData()
81     {
82         return chartData;
83     }
84
85     public void setChartData(List<Integer> chartData)
86     {
87         this.chartData = chartData;
88     }
89
90     public Frame withChartData(List<Integer> chartData)
91     {
92         this.chartData = chartData;
93         return this;
94     }
95
96     public Integer getIndex()
97     {
98         return index;
99     }
100
101     public void setIndex(Integer index)
102     {
103         this.index = index;
104     }
105
106     public Frame withIndex(Integer index)
107     {
108         this.index = index;
109         return this;
110     }
111
112     @Override
113     public String toString()
114     {
115         StringBuilder builder = new StringBuilder();
116         builder.append("Frame [icon=");
117         builder.append(icon);
118         builder.append(", text=");
119         builder.append(text);
120         builder.append(", goalData=");
121         builder.append(goalData);
122         builder.append(", chartData=");
123         builder.append(chartData);
124         builder.append(", index=");
125         builder.append(index);
126         builder.append("]");
127         return builder.toString();
128     }
129 }