2 * Copyright (c) 2010-2023 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 org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
18 import com.google.gson.annotations.Expose;
19 import com.google.gson.annotations.SerializedName;
22 * This POJO represents the version information of the bond bridge
24 * The incoming JSON looks like this:
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"}
30 * @author Sara Geleskie Damiano - Initial contribution
33 public class BondSysVersion {
34 // The current state hash
36 @Expose(serialize = false, deserialize = true)
37 public @Nullable String hash;
39 @Expose(serialize = true, deserialize = true)
40 public @Nullable String target;
42 @SerializedName("fw_ver")
43 @Expose(serialize = true, deserialize = true)
44 public @Nullable String firmwareVersion;
46 @SerializedName("fw_date")
47 @Expose(serialize = true, deserialize = true)
48 public @Nullable String firmwareDate;
50 @Expose(serialize = true, deserialize = true)
51 public @Nullable String make;
53 @Expose(serialize = true, deserialize = true)
54 public @Nullable String model;
56 @SerializedName("branding_profile")
57 @Expose(serialize = true, deserialize = true)
58 public @Nullable String brandingProfile;
60 @Expose(serialize = true, deserialize = true)
61 public @Nullable String bondid;
63 @SerializedName("upgrade_http")
64 @Expose(serialize = true, deserialize = true)
65 public @Nullable Boolean upgradeHttp;
67 @Expose(serialize = true, deserialize = true)
70 @SerializedName("uptime_s")
71 @Expose(serialize = true, deserialize = true)
72 public int uptimeSeconds;