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
sealed class DefaultKey<T>(val key:String) | |
object AccessTokenKey : DefaultKey<AccessToken>("access-token") |
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
data class AccessToken(val token: String) |
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
public class PreferencesHelperImpl implements PreferencesHelper { | |
private final Gson gson; | |
private final SharedPreferences preferences; | |
public PreferencesHelperImpl(Gson gson, SharedPreferences sharedPreferences) { | |
this.gson = gson; | |
this.preferences = sharedPreferences; | |
} | |
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
public class AccessToken { | |
private final String token; | |
public AccessToken(String token) { | |
this.token = token; | |
} | |
} |
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
public class AccessToken { | |
private final String token; | |
public AccessToken(String token) { | |
this.token = token; | |
} | |
} |