]> git.basschouten.com Git - openhab-addons.git/blob
86eb6445a04e551ddd41197de5b7b835ce6cbd3b
[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 the version information of the bond bridge
25  *
26  * The incoming JSON looks like this:
27  *
28  * {"target": "snowbird", "fw_ver": "v2.5.2", "fw_date": "Fri Feb 22 14:13:25
29  * -03 2019", "make": "Olibra LLC", "model": "model", "branding_profile":
30  * "O_SNOWBIRD", "uptime_s": 380, "_": "c342ae74"}
31  *
32  * @author Sara Geleskie Damiano - Initial contribution
33  */
34 @NonNullByDefault
35 public class BondSysVersion {
36     // The current state hash
37     @SerializedName("_")
38     @Expose(serialize = false, deserialize = true)
39     public @Nullable String hash;
40
41     @Expose(serialize = true, deserialize = true)
42     public @Nullable String target;
43
44     @SerializedName("fw_ver")
45     @Expose(serialize = true, deserialize = true)
46     public @Nullable String firmwareVersion;
47
48     @SerializedName("fw_date")
49     @Expose(serialize = true, deserialize = true)
50     public @Nullable String firmwareDate;
51
52     @Expose(serialize = true, deserialize = true)
53     public @Nullable String make;
54
55     @Expose(serialize = true, deserialize = true)
56     public @Nullable String model;
57
58     @SerializedName("branding_profile")
59     @Expose(serialize = true, deserialize = true)
60     public @Nullable String brandingProfile;
61
62     @Expose(serialize = true, deserialize = true)
63     public @Nullable String bondid;
64
65     @SerializedName("upgrade_http")
66     @Expose(serialize = true, deserialize = true)
67     public @Nullable Boolean upgradeHttp;
68
69     @Expose(serialize = true, deserialize = true)
70     public int api;
71
72     @SerializedName("uptime_s")
73     @Expose(serialize = true, deserialize = true)
74     public int uptimeSeconds;
75 }