forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
- Loading branch information
1 parent
3bab21f
commit 46aef12
Showing
20 changed files
with
771 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...cmobilelink/src/main/java/org/openhab/binding/generacmobilelink/internal/dto/Account.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright (c) 2010-2022 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.generacmobilelink.internal.dto; | ||
|
||
/** | ||
* The {@link Account} represents a Generac Account | ||
* | ||
* @author Dan Cunningham - Initial contribution | ||
*/ | ||
public class Account { | ||
public String userId; | ||
public String firstName; | ||
public String lastName; | ||
public String[] emails; | ||
public String[] phoneNumbers; | ||
public String[] groups; | ||
public MobileLinkSettings mobileLinkSettings; | ||
|
||
public class MobileLinkSettings { | ||
public DisplaySettings displaySettings; | ||
|
||
public class DisplaySettings { | ||
public String distanceUom; | ||
public String temperatureUom; | ||
} | ||
} | ||
} |
79 changes: 79 additions & 0 deletions
79
...obilelink/src/main/java/org/openhab/binding/generacmobilelink/internal/dto/Apparatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/** | ||
* Copyright (c) 2010-2022 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.generacmobilelink.internal.dto; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* The {@link Apparatus} represents a Generac Apparatus (Generator) | ||
* | ||
* @author Dan Cunningham - Initial contribution | ||
*/ | ||
public class Apparatus { | ||
public int apparatusId; | ||
public String serialNumber; | ||
public String name; | ||
public int type; | ||
public String localizedAddress; | ||
public String materialDescription; | ||
public String heroImageUrl; | ||
public int apparatusStatus; | ||
public boolean isConnected; | ||
public boolean isConnecting; | ||
public boolean showWarning; | ||
public Weather weather; | ||
public String preferredDealerName; | ||
public String preferredDealerPhone; | ||
public String preferredDealerEmail; | ||
public boolean isDealerManaged; | ||
public boolean isDealerUnmonitored; | ||
public String modelNumber; | ||
public String panelId; | ||
public List<Property> properties; | ||
|
||
public class Weather { | ||
public Temperature temperature; | ||
public int iconCode; | ||
|
||
public class Temperature { | ||
public double value; | ||
public String unit; | ||
public int unitType; | ||
} | ||
} | ||
|
||
public class Property { | ||
public String name; | ||
public Value value; | ||
public int type; | ||
|
||
public class Value { | ||
public int type; | ||
public String status; | ||
public boolean isLegacy; | ||
public boolean isDunning; | ||
public String deviceId; | ||
public String deviceType; | ||
public String signalStrength; | ||
public String batteryLevel; | ||
} | ||
} | ||
|
||
public class Device { | ||
public String deviceId; | ||
public String deviceType; | ||
public String signalStrength; | ||
public String batteryLevel; | ||
public String status; | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
...ink/src/main/java/org/openhab/binding/generacmobilelink/internal/dto/ApparatusDetail.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/** | ||
* Copyright (c) 2010-2022 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.generacmobilelink.internal.dto; | ||
|
||
/** | ||
* The {@link ApparatusDetail} represents the details of a Generac Apparatus | ||
* | ||
* @author Dan Cunningham - Initial contribution | ||
*/ | ||
public class ApparatusDetail { | ||
public int apparatusId; | ||
public String name; | ||
public String serialNumber; | ||
public int apparatusClassification; | ||
public String panelId; | ||
public String activationDate; | ||
public String deviceType; | ||
public String deviceSsid; | ||
public String shortDeviceId; | ||
public int apparatusStatus; | ||
public String heroImageUrl; | ||
public String statusLabel; | ||
public String statusText; | ||
public String eCodeLabel; | ||
public Weather weather; | ||
public boolean isConnected; | ||
public boolean isConnecting; | ||
public boolean showWarning; | ||
public boolean hasMaintenanceAlert; | ||
public String lastSeen; | ||
public String connectionTimestamp; | ||
public Address address; | ||
public Property[] properties; | ||
public Subscription subscription; | ||
public boolean enrolledInVpp; | ||
public boolean hasActiveVppEvent; | ||
public ProductInfo[] productInfo; | ||
public boolean hasDisconnectedNotificationsOn; | ||
|
||
public class Weather { | ||
public Temperature temperature; | ||
public int iconCode; | ||
|
||
public class Temperature { | ||
public double value; | ||
public String unit; | ||
public int unitType; | ||
} | ||
} | ||
|
||
public class Address { | ||
public String line1; | ||
public String line2; | ||
public String city; | ||
public String region; | ||
public String country; | ||
public String postalCode; | ||
} | ||
|
||
public class Property { | ||
public String name; | ||
public String value; | ||
public int type; | ||
} | ||
|
||
public class Subscription { | ||
public int type; | ||
public int status; | ||
public boolean isLegacy; | ||
public boolean isDunning; | ||
} | ||
|
||
public class ProductInfo { | ||
public String name; | ||
public String value; | ||
public int type; | ||
} | ||
} |
Oops, something went wrong.