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