]> git.basschouten.com Git - openhab-addons.git/blob
7f3da5ff9c372e6501def30849891504074b14f3
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.hdpowerview.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Survey data of a single Shade, as returned by an HD PowerView hub
21  *
22  * @author Jacob Laursen - Initial contribution
23  */
24 @NonNullByDefault
25 public class SurveyData {
26     @SerializedName("neighbor_id")
27     public int neighborId;
28     public int rssi;
29
30     @Override
31     public String toString() {
32         return String.format("{neighbor id:%d, rssi:%d}", neighborId, rssi);
33     }
34 }