2 * Copyright (c) 2010-2022 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.hdpowerview.internal.api.responses;
15 import java.util.List;
16 import java.util.StringJoiner;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20 import org.openhab.binding.hdpowerview.internal.api.SurveyData;
22 import com.google.gson.annotations.SerializedName;
25 * Survey data of a single Shade, as returned by an HD PowerView hub
27 * @author Jacob Laursen - Initial contribution
31 @SerializedName("shade_id")
34 @SerializedName("survey")
35 public List<SurveyData> surveyData;
38 public String toString() {
39 List<SurveyData> surveyData = this.surveyData;
40 if (surveyData == null) {
43 StringJoiner joiner = new StringJoiner(", ");
44 surveyData.forEach(data -> joiner.add(data.toString()));
45 return joiner.toString();