-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
158 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package net.jordon.harmonylink; | ||
|
||
|
||
public class BatteryInfo { | ||
boolean hasBattery; | ||
int batteryPercent; | ||
ChargingStatus chargingStatus; | ||
|
||
@Override | ||
public String toString() { | ||
return "BatteryInfo{" + | ||
"hasBattery=" + hasBattery + | ||
", batteryPercent=" + batteryPercent + | ||
", chargingStatus='" + chargingStatus + '\'' + | ||
'}'; | ||
} | ||
} |
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,8 @@ | ||
package net.jordon.harmonylink; | ||
|
||
public enum ChargingStatus { | ||
BATTERY, | ||
CHARGING, | ||
UNKNOWN | ||
// add any other statuses you might receive | ||
} |
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,16 @@ | ||
package net.jordon.harmonylink; | ||
|
||
public class DockInfo { | ||
String dockModel; | ||
boolean isDocked; | ||
boolean fallbackDetection; | ||
|
||
@Override | ||
public String toString() { | ||
return "DockInfo{" + | ||
"dockModel='" + dockModel + '\'' + | ||
", isDocked=" + isDocked + | ||
", fallbackDetection=" + fallbackDetection + | ||
'}'; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package net.jordon.harmonylink; | ||
|
||
public class OSInfo { | ||
String osType; | ||
String osVersion; | ||
String osEdition; | ||
String osBits; | ||
|
||
@Override | ||
public String toString() { | ||
return "OSInfo{" + | ||
"osType='" + osType + '\'' + | ||
", osVersion='" + osVersion + '\'' + | ||
", osEdition='" + osEdition + '\'' + | ||
", osBits='" + osBits + '\'' + | ||
'}'; | ||
} | ||
} |
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,16 @@ | ||
package net.jordon.harmonylink; | ||
|
||
public class SystemInfo { | ||
OSInfo os_info; | ||
BatteryInfo battery_info; | ||
DockInfo dock_info; | ||
|
||
@Override | ||
public String toString() { | ||
return "SystemInfo{" + | ||
"os_info=" + os_info + | ||
", battery_info=" + battery_info + | ||
", dock_info=" + dock_info + | ||
'}'; | ||
} | ||
} |