]> git.basschouten.com Git - openhab-addons.git/blob
109b6b3b598c1bf46a3fbda09d2c1bf9a45088c8
[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.generacmobilelink.internal.dto;
14
15 import java.util.List;
16
17 /**
18  * The {@link Apparatus} represents a Generac Apparatus (Generator)
19  *
20  * @author Dan Cunningham - Initial contribution
21  */
22 public class Apparatus {
23     public int apparatusId;
24     public String serialNumber;
25     public String name;
26     public int type;
27     public String localizedAddress;
28     public String materialDescription;
29     public String heroImageUrl;
30     public int apparatusStatus;
31     public boolean isConnected;
32     public boolean isConnecting;
33     public boolean showWarning;
34     public Weather weather;
35     public String preferredDealerName;
36     public String preferredDealerPhone;
37     public String preferredDealerEmail;
38     public boolean isDealerManaged;
39     public boolean isDealerUnmonitored;
40     public String modelNumber;
41     public String panelId;
42     public List<Property> properties;
43
44     public class Weather {
45         public Temperature temperature;
46         public int iconCode;
47
48         public class Temperature {
49             public double value;
50             public String unit;
51             public int unitType;
52         }
53     }
54
55     public class Property {
56         public String name;
57         public Value value;
58         public int type;
59
60         public class Value {
61             public int type;
62             public String status;
63             public boolean isLegacy;
64             public boolean isDunning;
65             public String deviceId;
66             public String deviceType;
67             public String signalStrength;
68             public String batteryLevel;
69         }
70     }
71
72     public class Device {
73         public String deviceId;
74         public String deviceType;
75         public String signalStrength;
76         public String batteryLevel;
77         public String status;
78     }
79 }