]> git.basschouten.com Git - openhab-addons.git/blob
f41d1a470b6d2e56215321205b4f0aeff7acf3c5
[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.bondhome.internal.api;
14
15 import static org.openhab.binding.bondhome.internal.BondHomeBindingConstants.*;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 import com.google.gson.annotations.Expose;
21 import com.google.gson.annotations.SerializedName;
22
23 /**
24  * This POJO represents a bond tree node hash state
25  *
26  * The incoming JSON looks like this:
27  *
28  * { "_": "b32ae527" }
29  *
30  * @author Sara Geleskie Damiano - Initial contribution
31  */
32 @NonNullByDefault
33 public class BondHash {
34     // The name associated with the device in the bond app
35     @SerializedName("_")
36     @Expose(serialize = false, deserialize = true)
37     public @Nullable String hash;
38 }