-
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
1 parent
a003c5b
commit 24c333a
Showing
12 changed files
with
82 additions
and
55 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
app/src/main/java/de/raffaelhahn/xadgps_client/Constants.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,17 @@ | ||
package de.raffaelhahn.xadgps_client; | ||
|
||
public class Constants { | ||
|
||
public static final String API_URL = "https://appapi.xadgps.com/openapiv4.asmx"; | ||
public static final String APP_ID = "25"; | ||
public static final String SP_NAME = "de.raffaelhahn.xadgps_client"; | ||
|
||
public static final String NOTIFY_DEVICES_PREF_KEY = "notifyDevices"; | ||
|
||
public static final String SP_KEY_OPERATING_MODE = "operating_mode"; | ||
public static final String SP_KEY_USERNAME = "username"; | ||
public static final String SP_KEY_LOGIN_NAME = "loginName"; | ||
public static final String SP_KEY_USER_ID = "userId"; | ||
public static final String SP_KEY_DEVICE_ID = "deviceId"; | ||
|
||
} |
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
22 changes: 22 additions & 0 deletions
22
app/src/main/java/de/raffaelhahn/xadgps_client/OperatingMode.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,22 @@ | ||
package de.raffaelhahn.xadgps_client; | ||
|
||
public enum OperatingMode { | ||
|
||
USER("0"), | ||
DEVICE("1"), | ||
UNKNOWN("3"); | ||
|
||
public final String numericString; | ||
OperatingMode(String numericString) { | ||
this.numericString = numericString; | ||
} | ||
|
||
public static OperatingMode fromNumericString(String value) { | ||
for (OperatingMode mode : OperatingMode.values()) { | ||
if (mode.numericString.equals(value)) { | ||
return mode; | ||
} | ||
} | ||
return OperatingMode.UNKNOWN; | ||
} | ||
} |
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
10 changes: 0 additions & 10 deletions
10
app/src/main/java/de/raffaelhahn/xadgps_client/async/Constants.java
This file was deleted.
Oops, something went wrong.
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
10 changes: 2 additions & 8 deletions
10
app/src/main/java/de/raffaelhahn/xadgps_client/async/LoginAsync.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
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