-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.io.Serializable
,java.lang.Cloneable
public class MenigaPublicSettings implements Serializable, Parcelable, Cloneable
Public configurations for the whole Meniga system.
Copyright 2017 Meniga Iceland Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MenigaPublicSettings.MenigaCurrency
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<MenigaPublicSettings>
CREATOR
protected String
defaultCultureName
protected String
systemCurrency
protected String
numberFormat
protected String
currencyFormat
protected String
currencyFormatUsingCode
protected String
clusterNodeName
protected int
currencyRoundOff
protected int
currencyDecimalDigits
protected List<MenigaPublicSettings.MenigaCurrency>
currencies
protected String
currentCulture
protected String
currencyGroupSymbol
protected String
currencyDecimalSymbol
-
Method Summary
-
-
Method Detail
-
setOperator
static void setOperator(MenigaPublicSettingsOperations operator)
Sets the api operator for doing api calls
- Parameters:
operator
- An object that implements the MenigaPublicSettingsOperations interface for carrying out api operations on this class.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
getCurrencySymbol
String getCurrencySymbol(String currencyCode)
Retrieves the standalone currency symbol for the currency code provided
- Parameters:
currencyCode
- The currency code to use to look for the symbol (USD = $, EUR = € etc)
-
getJavaFormatForCurrency
String getJavaFormatForCurrency(String currencyCode, boolean useCurrencyCode)
Converts the currency format into a java format-able string. The server format is in C# format
- Parameters:
currencyCode
- The currency code to retrieve the correct currency formatuseCurrencyCode
- Whether to use currency symbol (e.g.
-
hashCode
int hashCode()
-
fetch
static Result<MenigaPublicSettings> fetch()
Returns the public system settings.
-
getDefaultCultureName
String getDefaultCultureName()
-
getSystemCurrency
String getSystemCurrency()
-
getNumberFormat
String getNumberFormat()
-
getCurrencyFormat
String getCurrencyFormat()
-
getCurrencyFormatUsingCode
String getCurrencyFormatUsingCode()
-
getClusterNodeName
String getClusterNodeName()
-
getCurrencyRoundOff
int getCurrencyRoundOff()
-
getCurrencyDecimalDigits
int getCurrencyDecimalDigits()
-
getCurrencies
List<MenigaPublicSettings.MenigaCurrency> getCurrencies()
-
getCurrentCulture
String getCurrentCulture()
-
getCurrencyGroupSymbol
String getCurrencyGroupSymbol()
-
getCurrencyDecimalSymbol
String getCurrencyDecimalSymbol()
-
getNumberFormat
String getNumberFormat(String currencyCode)
Retrieves the number format (e.g. ###,####.##) for the currency code provided
- Parameters:
currencyCode
- The currency code used to look up the number format
-
-
-
-