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.lametrictime.internal.api.local.dto;
15 import java.util.List;
17 import com.google.gson.annotations.SerializedName;
22 * @author Gregory Moyer - Initial contribution
27 @SerializedName("goalData")
28 private GoalData goalData;
29 @SerializedName("chartData")
30 private List<Integer> chartData;
31 private Integer index;
33 public String getIcon() {
37 public void setIcon(String icon) {
41 public Frame withIcon(String icon) {
46 public String getText() {
50 public void setText(String text) {
54 public Frame withText(String text) {
59 public GoalData getGoalData() {
63 public void setGoalData(GoalData goalData) {
64 this.goalData = goalData;
67 public Frame withGoalData(GoalData goalData) {
68 this.goalData = goalData;
72 public List<Integer> getChartData() {
76 public void setChartData(List<Integer> chartData) {
77 this.chartData = chartData;
80 public Frame withChartData(List<Integer> chartData) {
81 this.chartData = chartData;
85 public Integer getIndex() {
89 public void setIndex(Integer index) {
93 public Frame withIndex(Integer index) {
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);
112 return builder.toString();