-
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.
- Loading branch information
Showing
35 changed files
with
938 additions
and
417 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
56 changes: 56 additions & 0 deletions
56
app/src/main/java/com/sepp89117/goeasypro_android/GoMode.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,56 @@ | ||
package com.sepp89117.goeasypro_android; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class GoMode { | ||
private int id = -1; | ||
private String title = "NC"; | ||
|
||
private static final Map<Integer, String> modes = new HashMap<Integer, String>() {{ | ||
put(-1, "NC"); | ||
put(0, "Video"); | ||
put(1, "Photo"); | ||
put(2, "Multishot"); | ||
put(3, "Broadcast"); | ||
put(4, "Playback"); | ||
put(5, "Setup"); | ||
put(6, "FW Update"); | ||
put(7, "USB MTP"); | ||
put(8, "SOS"); | ||
put(9, "MEdit"); | ||
put(10, "Calibration"); | ||
put(11, "Direct Offload"); | ||
put(12, "Video"); | ||
put(13, "Time Lapse Video"); | ||
put(14, "Video + Photo"); | ||
put(15, "Looping"); | ||
put(16, "Single Photo"); | ||
put(17, "Photo"); | ||
put(18, "Night Photo"); | ||
put(19, "Burst Photo"); | ||
put(20, "Time Lapse Photo"); | ||
put(21, "Night Lapse Photo"); | ||
put(22, "Broadcast Record"); | ||
put(23, "Webcam"); | ||
put(24, "Time Warp Video"); | ||
put(25, "Live Burst"); | ||
put(26, "Night Lapse Video"); | ||
put(27, "Slo-Mo"); | ||
}}; | ||
|
||
public GoMode(){}; | ||
|
||
public GoMode(int id) { | ||
this.id = id; | ||
this.title = modes.getOrDefault(this.id, "UNK " + this.id); | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
app/src/main/java/com/sepp89117/goeasypro_android/GoPreset.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,48 @@ | ||
package com.sepp89117.goeasypro_android; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class GoPreset { | ||
private int id = -1; | ||
private String title = "NC"; | ||
|
||
private static final Map<Integer, String> presets = new HashMap<Integer, String>() {{ | ||
put(-2, "NA"); | ||
put(-1, "NC"); | ||
put(0x00000000, "Standard"); | ||
put(0x00000001, "Activity"); | ||
put(0x00000002, "Cinematic"); | ||
put(0x00000003, "Slo-Mo"); | ||
put(0x00000004, "Ultra Slo-Mo"); | ||
put(0x00000005, "Basic"); | ||
put(0x00000006, "Water"); | ||
put(0x00000007, "Indoor"); | ||
put(0x00010000, "Photo"); | ||
put(0x00010001, "Live Burst"); | ||
put(0x00010002, "Burst Photo"); | ||
put(0x00010003, "Night Photo"); | ||
put(0x00020000, "Time Warp"); | ||
put(0x00020001, "Time Lapse"); | ||
put(0x00020002, "Night Lapse"); | ||
put(0x00030000, "Max Video"); | ||
put(0x00040000, "Max Photo"); | ||
put(0x00050000, "Max Time Warp"); | ||
}}; | ||
|
||
//To determine which presets are available for immediate use, get Preset Status. | ||
public GoPreset(){}; | ||
|
||
public GoPreset(int id) { | ||
this.id = id; | ||
this.title = presets.getOrDefault(this.id, "UNK " + this.id); | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
} |
Oops, something went wrong.