87 lines
2.3 KiB
Java
87 lines
2.3 KiB
Java
package com.discord.stores;
|
|
|
|
import lanchon.dexpatcher.annotation.DexAdd;
|
|
import lanchon.dexpatcher.annotation.DexEdit;
|
|
|
|
@DexEdit
|
|
public class StoreUserSettings extends Store {
|
|
|
|
// supplemental patch (required for slash commands)
|
|
|
|
@DexAdd
|
|
public boolean getAutoplayGifs() {
|
|
return this.prefs.getBoolean("CACHE_KEY_CTC_AUTOPLAY_GIFS", true);
|
|
}
|
|
|
|
@DexAdd
|
|
public void setAutoplayGifs(boolean z) {
|
|
this.prefs.edit().putBoolean("CACHE_KEY_CTC_AUTOPLAY_GIFS", z).apply();
|
|
}
|
|
|
|
@DexAdd
|
|
public boolean getLeakChannels() {
|
|
return this.prefs.getBoolean("CACHE_KEY_CTC_LEAK_CHANNELS", true);
|
|
}
|
|
|
|
@DexAdd
|
|
public void setLeakChannels(boolean z) {
|
|
this.prefs.edit().putBoolean("CACHE_KEY_CTC_LEAK_CHANNELS", z).apply();
|
|
}
|
|
|
|
@DexAdd
|
|
public boolean getImageSpoiler() {
|
|
return this.prefs.getBoolean("CACHE_KEY_CTC_IMAGE_SPOILER", false);
|
|
}
|
|
|
|
@DexAdd
|
|
public void setImageSpoiler(boolean z) {
|
|
this.prefs.edit().putBoolean("CACHE_KEY_CTC_IMAGE_SPOILER", z).apply();
|
|
}
|
|
|
|
@DexAdd
|
|
public boolean getNoDelete() {
|
|
return this.prefs.getBoolean("CACHE_KEY_CTC_NO_DELETE", false);
|
|
}
|
|
|
|
@DexAdd
|
|
public void setNoDelete(boolean z) {
|
|
this.prefs.edit().putBoolean("CACHE_KEY_CTC_NO_DELETE", z).apply();
|
|
}
|
|
|
|
@DexAdd
|
|
public boolean getShowTyping() {
|
|
return this.prefs.getBoolean("CACHE_KEY_CTC_SHOW_TYPING", true);
|
|
}
|
|
|
|
@DexAdd
|
|
public void setShowTyping(boolean z) {
|
|
this.prefs.edit().putBoolean("CACHE_KEY_CTC_SHOW_TYPING", z).apply();
|
|
}
|
|
|
|
@DexAdd
|
|
public String getStoredToken() {
|
|
return this.prefs.getString("STORE_AUTHED_TOKEN", "none");
|
|
}
|
|
|
|
@DexAdd
|
|
public void setStoredToken(String str) {
|
|
this.prefs.edit().putString("STORE_AUTHED_TOKEN", str).apply();
|
|
}
|
|
|
|
@DexAdd
|
|
public String getAccountToken(String str) {
|
|
String upperCase = str.toUpperCase();
|
|
return this.prefs.getString("STORE_AUTHED_TOKEN_CTC_USER_" + upperCase, "none");
|
|
}
|
|
|
|
@DexAdd
|
|
public void setAccountToken(String str, String str2) {
|
|
String upperCase = str.toUpperCase();
|
|
this.prefs.edit().putString("STORE_AUTHED_TOKEN_CTC_USER_" + upperCase, str2).apply();
|
|
}
|
|
|
|
// end of supplemental patch
|
|
|
|
|
|
}
|