Class BatchUserProfile


  • @Deprecated
    public final class BatchUserProfile
    extends java.lang.Object
    Deprecated.
    Please use Batch.User methods instead
    User profile that contains user specific targeting data
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getCustomID()
      Deprecated.
      Please use Batch.User methods instead
      java.lang.String getLanguage()
      Deprecated.
      Please use Batch.User methods instead
      java.lang.String getRegion()
      Deprecated.
      Please use Batch.User methods instead
      BatchUserProfile setCustomID​(java.lang.String customID)
      Deprecated.
      Please use Batch.User methods instead
      BatchUserProfile setLanguage​(java.lang.String language)
      Deprecated.
      Please use Batch.User methods instead
      BatchUserProfile setRegion​(java.lang.String region)
      Deprecated.
      Please use Batch.User methods instead
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setLanguage

        @Deprecated
        public BatchUserProfile setLanguage​(java.lang.String language)
        Deprecated.
        Please use Batch.User methods instead
        Set the language of this user.
        Setting this will affect targeting of this user, use it only if you know what you're doing.
        Parameters:
        language - a string that represent a locale language (ex: fr, en, pt, ru etc...)
        Returns:
      • getLanguage

        @Deprecated
        public java.lang.String getLanguage()
        Deprecated.
        Please use Batch.User methods instead
        Get the current language of this user.
        If you set a custom one using setLanguage(String) this method will return this one otherwise it will return the device default.
        Returns:
      • setRegion

        @Deprecated
        public BatchUserProfile setRegion​(java.lang.String region)
        Deprecated.
        Please use Batch.User methods instead
        Set the region (country) of this user.
        Setting this will affect targeting of this user, use it only if you know what you're doing.
        Parameters:
        region - a string that represent a locale region (country) (ex: FR, US, BR, RU etc...)
        Returns:
      • getRegion

        @Deprecated
        public java.lang.String getRegion()
        Deprecated.
        Please use Batch.User methods instead
        Get the current region of this user.
        If you set a custom one using setRegion(String) this method will return this one otherwise it will return the device default.
        Returns:
      • setCustomID

        @Deprecated
        public BatchUserProfile setCustomID​(java.lang.String customID)
        Deprecated.
        Please use Batch.User methods instead
        Set the custom user identifier to Batch.
        You should use this method if you have your own login system.

        Be carefull : Do not use it if you don't know what you are doing, giving a bad custom user ID can result in failure into offer delivery and restore
        Parameters:
        customID -
      • getCustomID

        @Deprecated
        public java.lang.String getCustomID()
        Deprecated.
        Please use Batch.User methods instead
        Return the custom ID of the user if you specified any using the setCustomID(String)
        Returns:
        customID if any, null otherwise