Package com.batch.android
Class BatchUserProfile
- java.lang.Object
-
- com.batch.android.BatchUserProfile
-
@Deprecated public final class BatchUserProfile extends java.lang.ObjectDeprecated.Please use Batch.User methods insteadUser profile that contains user specific targeting data
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetCustomID()Deprecated.Please use Batch.User methods insteadjava.lang.StringgetLanguage()Deprecated.Please use Batch.User methods insteadjava.lang.StringgetRegion()Deprecated.Please use Batch.User methods insteadBatchUserProfilesetCustomID(java.lang.String customID)Deprecated.Please use Batch.User methods insteadBatchUserProfilesetLanguage(java.lang.String language)Deprecated.Please use Batch.User methods insteadBatchUserProfilesetRegion(java.lang.String region)Deprecated.Please use Batch.User methods instead
-
-
-
Method Detail
-
setLanguage
@Deprecated public BatchUserProfile setLanguage(java.lang.String language)
Deprecated.Please use Batch.User methods insteadSet 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 insteadGet the current language of this user.
If you set a custom one usingsetLanguage(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 insteadSet 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 insteadGet the current region of this user.
If you set a custom one usingsetRegion(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 insteadSet 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 insteadReturn the custom ID of the user if you specified any using thesetCustomID(String)- Returns:
- customID if any, null otherwise
-
-