Class Parameters


  • public final class Parameters
    extends java.lang.Object
    Parameters to get and set parameters
    • 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.String get​(java.lang.String key)
      Get parameter value
      java.lang.String get​(java.lang.String key, java.lang.String failure)
      Get parameter value.
      void remove​(java.lang.String key)
      Remove the value of the given parameter
      void set​(java.lang.String key, java.lang.String value, boolean save)
      Set the parameter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • Parameters

        public Parameters​(android.content.Context context)
        Parameters:
        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 -