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.bondhome.internal.api;
15 import static org.openhab.binding.bondhome.internal.BondHomeBindingConstants.*;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
20 import com.google.gson.annotations.Expose;
21 import com.google.gson.annotations.SerializedName;
24 * This POJO represents the properties of a Bond device
26 * The incoming JSON looks like this:
28 * {"max_speed": 3, "trust_state": false, "addr": "10101", "freq": 434300, "bps": 3000, "zero_gap": 30}
30 * @author Sara Geleskie Damiano - Initial contribution
33 public class BondDeviceProperties {
34 // The current properties hash
36 @Expose(serialize = false, deserialize = true)
37 public @Nullable String hash;
38 // The maximum speed of a fan
39 @SerializedName("max_speed")
40 @Expose(serialize = true, deserialize = true)
42 // Whether or not to "trust" that the device state remembered by the bond bridge is
43 // correct for toggle switches
44 @SerializedName("trust_state")
45 @Expose(serialize = true, deserialize = true)
46 public boolean trustState;
48 @Expose(serialize = true, deserialize = true)
49 public String addr = "";
50 // The fan radio frequency
51 @Expose(serialize = true, deserialize = true)
54 @Expose(serialize = true, deserialize = true)
57 @SerializedName("zero_gap")
58 @Expose(serialize = true, deserialize = true)