2 * Copyright 2017-2018 Gregory Moyer and contributors.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.openhab.binding.lametrictime.api.local.model;
18 import java.util.List;
20 import com.google.gson.annotations.SerializedName;
26 @SerializedName("goalData")
27 private GoalData goalData;
28 @SerializedName("chartData")
29 private List<Integer> chartData;
30 private Integer index;
32 public String getIcon()
37 public void setIcon(String icon)
42 public Frame withIcon(String icon)
48 public String getText()
53 public void setText(String text)
58 public Frame withText(String text)
64 public GoalData getGoalData()
69 public void setGoalData(GoalData goalData)
71 this.goalData = goalData;
74 public Frame withGoalData(GoalData goalData)
76 this.goalData = goalData;
80 public List<Integer> getChartData()
85 public void setChartData(List<Integer> chartData)
87 this.chartData = chartData;
90 public Frame withChartData(List<Integer> chartData)
92 this.chartData = chartData;
96 public Integer getIndex()
101 public void setIndex(Integer index)
106 public Frame withIndex(Integer index)
113 public String toString()
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);
127 return builder.toString();