2024-05-16 10:45:44 -06:00
|
|
|
package com.astatin3.scoutingapp2025.SettingsVersionStack;
|
|
|
|
|
|
2024-06-25 17:40:22 -06:00
|
|
|
public class sv0 extends settingsVersion {
|
2024-06-24 10:31:29 -06:00
|
|
|
@Override
|
2024-05-16 10:45:44 -06:00
|
|
|
public int getVersion() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2024-06-24 10:31:29 -06:00
|
|
|
@Override
|
2024-05-16 10:45:44 -06:00
|
|
|
public void update(){
|
2024-06-24 10:31:29 -06:00
|
|
|
// int file_version = get_file_version();
|
|
|
|
|
// if(file_version == getVersion()) {
|
|
|
|
|
// return;
|
|
|
|
|
// }else if(file_version < getVersion()){
|
|
|
|
|
// super.update();
|
|
|
|
|
// }
|
|
|
|
|
// set_file_version(getVersion());
|
2024-06-23 14:14:22 -06:00
|
|
|
}
|
2024-05-16 10:45:44 -06:00
|
|
|
|
2024-06-23 14:14:22 -06:00
|
|
|
@Override
|
|
|
|
|
public void defaultSettings() {
|
2024-06-24 10:31:29 -06:00
|
|
|
writeTag("username", "Username");
|
|
|
|
|
writeTag("selected_event_code", "unset");
|
|
|
|
|
// writeTag("practice_mode", "false");
|
|
|
|
|
writeTag("wifi_mode", "false");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void set_username(String name){
|
|
|
|
|
writeTag("username", name);
|
|
|
|
|
}
|
|
|
|
|
public String get_username(){
|
|
|
|
|
return readTag("username");
|
|
|
|
|
}
|
|
|
|
|
public void set_evcode(String evcode){
|
|
|
|
|
writeTag("selected_event_code", evcode);
|
|
|
|
|
}
|
|
|
|
|
public String get_evcode(){
|
|
|
|
|
return readTag("selected_event_code");
|
|
|
|
|
}
|
|
|
|
|
// public void set_practice_mode(boolean value) {
|
|
|
|
|
// writeTag("practice_mode", value ? "true" : "false");
|
|
|
|
|
// }
|
|
|
|
|
// public boolean get_practice_mode(){
|
|
|
|
|
// return readTag("practice_mode").equals("true");
|
|
|
|
|
// }
|
|
|
|
|
public void set_wifi_mode(boolean value){
|
|
|
|
|
writeTag("wifi_mode", value ? "true" : "false");
|
|
|
|
|
}
|
|
|
|
|
public boolean get_wifi_mode(){
|
|
|
|
|
return readTag("wifi_mode").equals("true");
|
2024-05-16 10:45:44 -06:00
|
|
|
}
|
|
|
|
|
}
|