Package com.batch.android.core
Class Parameters
- java.lang.Object
-
- com.batch.android.core.Parameters
-
public final class Parameters extends java.lang.ObjectParameters to get and set parameters
-
-
Field Summary
Fields Modifier and Type Field Description static intAPI_LEVELAPI level of the sdkprotected android.content.ContextapplicationContextApplication contextstatic java.lang.StringATTR_CHECK_WS_URLURL of the attributes check WSstatic java.lang.StringATTR_SEND_WS_URLURL of the attributes send WSstatic java.lang.StringBRIDGE_VERSION_ENVIRONEMENT_VAREnvironement var to get Batch bridge version (to put it into User-Agent)protected static java.lang.StringCOMMON_EXTERNAL_CRYPT_BASE_KEYCommon part of the default crypt key base 64 encoded (4 char long) used to decrypt external data external = webservice dataprotected static java.lang.StringCOMMON_EXTERNAL_CRYPT_BASE_KEY_V2Common part of the default crypt key base 64 encoded (4 char long) used to decrypt external data external = webservice dataprotected static java.lang.StringCOMMON_EXTERNAL_CRYPT_SIGNATURE_KEYCommon part of the signature crypt key base 64 encoded (4 char long) used to decrypt external data external = webservice dataprotected static java.lang.StringCOMMON_INTERNAL_CRYPT_BASE_KEYCommon part of the default crypt key base 64 encoded (4 char long) used to decrypt internal data internal = local filesstatic java.lang.StringDISPLAY_RECEIPT_WS_URLURL of the display receipt WSstatic java.lang.StringDOMAIN_URLURL of the domain used in logsstatic booleanENABLE_DEV_LOGSDev logs ? Set to false in productionstatic booleanENABLE_WS_INTERCEPTORWS interceptor allowed ? Set to false in productionstatic java.lang.StringINBOX_FETCH_WS_URLURL of the inbox fetch WSstatic java.lang.StringINBOX_SYNC_WS_URLURL of the inbox sync WSstatic java.lang.StringLIBRARY_BUNDLEBundle of Batchstatic java.lang.StringLOCAL_CAMPAIGNS_JIT_WS_URLURL of the local campaigns JIT (check just in time) WSstatic java.lang.StringLOCAL_CAMPAIGNS_WS_URLURL of the local campaigns WSstatic intMESSAGING_API_LEVELMessaging API level of the sdkstatic java.lang.StringMETRIC_WS_URLURL of the metrics WSstatic java.lang.StringPLUGIN_VERSION_ENVIRONEMENT_VAREnvironement var to get Batch plugin version (to put it into User-Agent)static java.lang.StringPUSH_WS_URLURL of the push WSstatic java.lang.StringSDK_VERSIONName of the current versionstatic java.lang.StringSTART_WS_URLURL of the start WSstatic java.lang.StringTRACKER_WS_URLURL of the restore WS
-
Constructor Summary
Constructors Constructor Description Parameters(android.content.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget(java.lang.String key)Get parameter valuejava.lang.Stringget(java.lang.String key, java.lang.String failure)Get parameter value.voidremove(java.lang.String key)Remove the value of the given parametervoidset(java.lang.String key, java.lang.String value, boolean save)Set the parameter
-
-
-
Field Detail
-
COMMON_INTERNAL_CRYPT_BASE_KEY
protected static final java.lang.String COMMON_INTERNAL_CRYPT_BASE_KEY
Common part of the default crypt key base 64 encoded (4 char long) used to decrypt internal data internal = local files- See Also:
- Constant Field Values
-
COMMON_EXTERNAL_CRYPT_SIGNATURE_KEY
protected static final java.lang.String COMMON_EXTERNAL_CRYPT_SIGNATURE_KEY
Common part of the signature crypt key base 64 encoded (4 char long) used to decrypt external data external = webservice data- See Also:
- Constant Field Values
-
COMMON_EXTERNAL_CRYPT_BASE_KEY
protected static final java.lang.String COMMON_EXTERNAL_CRYPT_BASE_KEY
Common part of the default crypt key base 64 encoded (4 char long) used to decrypt external data external = webservice data- See Also:
- Constant Field Values
-
COMMON_EXTERNAL_CRYPT_BASE_KEY_V2
protected static final java.lang.String COMMON_EXTERNAL_CRYPT_BASE_KEY_V2
Common part of the default crypt key base 64 encoded (4 char long) used to decrypt external data external = webservice data- See Also:
- Constant Field Values
-
ENABLE_DEV_LOGS
public static final boolean ENABLE_DEV_LOGS
Dev logs ? Set to false in production- See Also:
- Constant Field Values
-
ENABLE_WS_INTERCEPTOR
public static final boolean ENABLE_WS_INTERCEPTOR
WS interceptor allowed ? Set to false in production- See Also:
- Constant Field Values
-
SDK_VERSION
public static final java.lang.String SDK_VERSION
Name of the current version- See Also:
- Constant Field Values
-
API_LEVEL
public static final int API_LEVEL
API level of the sdk
-
MESSAGING_API_LEVEL
public static final int MESSAGING_API_LEVEL
Messaging API level of the sdk
-
LIBRARY_BUNDLE
public static final java.lang.String LIBRARY_BUNDLE
Bundle of Batch- See Also:
- Constant Field Values
-
DOMAIN_URL
public static final java.lang.String DOMAIN_URL
URL of the domain used in logs- See Also:
- Constant Field Values
-
PLUGIN_VERSION_ENVIRONEMENT_VAR
public static final java.lang.String PLUGIN_VERSION_ENVIRONEMENT_VAR
Environement var to get Batch plugin version (to put it into User-Agent)- See Also:
- Constant Field Values
-
BRIDGE_VERSION_ENVIRONEMENT_VAR
public static final java.lang.String BRIDGE_VERSION_ENVIRONEMENT_VAR
Environement var to get Batch bridge version (to put it into User-Agent)- See Also:
- Constant Field Values
-
START_WS_URL
public static final java.lang.String START_WS_URL
URL of the start WS- See Also:
- Constant Field Values
-
TRACKER_WS_URL
public static final java.lang.String TRACKER_WS_URL
URL of the restore WS- See Also:
- Constant Field Values
-
PUSH_WS_URL
public static final java.lang.String PUSH_WS_URL
URL of the push WS- See Also:
- Constant Field Values
-
ATTR_SEND_WS_URL
public static final java.lang.String ATTR_SEND_WS_URL
URL of the attributes send WS- See Also:
- Constant Field Values
-
ATTR_CHECK_WS_URL
public static final java.lang.String ATTR_CHECK_WS_URL
URL of the attributes check WS- See Also:
- Constant Field Values
-
LOCAL_CAMPAIGNS_WS_URL
public static final java.lang.String LOCAL_CAMPAIGNS_WS_URL
URL of the local campaigns WS- See Also:
- Constant Field Values
-
INBOX_FETCH_WS_URL
public static final java.lang.String INBOX_FETCH_WS_URL
URL of the inbox fetch WS- See Also:
- Constant Field Values
-
INBOX_SYNC_WS_URL
public static final java.lang.String INBOX_SYNC_WS_URL
URL of the inbox sync WS- See Also:
- Constant Field Values
-
DISPLAY_RECEIPT_WS_URL
public static final java.lang.String DISPLAY_RECEIPT_WS_URL
URL of the display receipt WS- See Also:
- Constant Field Values
-
METRIC_WS_URL
public static final java.lang.String METRIC_WS_URL
URL of the metrics WS- See Also:
- Constant Field Values
-
LOCAL_CAMPAIGNS_JIT_WS_URL
public static final java.lang.String LOCAL_CAMPAIGNS_JIT_WS_URL
URL of the local campaigns JIT (check just in time) WS- See Also:
- Constant Field Values
-
applicationContext
protected android.content.Context applicationContext
Application context
-
-
Method Detail
-
get
public java.lang.String get(java.lang.String key)
Get parameter value- Parameters:
key-- Returns:
- value if found, null otherwise
-
get
public java.lang.String get(java.lang.String key, java.lang.String failure)Get parameter value.- Parameters:
key-failure-- Returns:
- value if found, failure otherwise.
-
set
public void set(java.lang.String key, java.lang.String value, boolean save)Set the parameter- Parameters:
key-value-save- if true, the value will be here at next app launch, it will be lost otherwise
-
remove
public void remove(java.lang.String key)
Remove the value of the given parameter- Parameters:
key-
-
-