-
- All Implemented Interfaces:
public class ErrorMessageProvider
-
-
Field Summary
Fields Modifier and Type Field Description public final Map<Integer, String>
errorsMessageMap
-
Method Summary
Modifier and Type Method Description Map<Integer, String>
getErrorsMessageMap()
static synchronized ErrorMessageProvider
getInstance(Context context)
static synchronized ErrorMessageProvider
getInstance()
void
updateErrorAndMessageMap(Context context, @Nullable() String errorMessageValue)
Updates map errors and message from {@param errorMessageValue} if not null, otherwise update map from saved data in shared preferences. void
saveLanguageDirection(Context context, String languageObj)
int
getLanguageDirection()
-
-
Method Detail
-
getErrorsMessageMap
Map<Integer, String> getErrorsMessageMap()
-
getInstance
static synchronized ErrorMessageProvider getInstance(Context context)
-
getInstance
@Nullable() static synchronized ErrorMessageProvider getInstance()
-
updateErrorAndMessageMap
void updateErrorAndMessageMap(Context context, @Nullable() String errorMessageValue)
Updates map errors and message from {@param errorMessageValue} if not null, otherwise update map from saved data in shared preferences.
- Parameters:
errorMessageValue
- Json string of errors and map.
-
saveLanguageDirection
void saveLanguageDirection(Context context, String languageObj)
-
getLanguageDirection
int getLanguageDirection()
-
-
-
-