public abstract class User
extends java.lang.Object
edit() and UserEditor.commit().| Modifier and Type | Class and Description |
|---|---|
static class |
User.Gender |
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Integer |
birthyear()
Current user year of birth
|
abstract java.lang.String |
city()
Current user city:
"SOME CITY NAME" if set
"" if set to do not record, that is user opt out from location services
{code null} if not specified, geoip is used on the server
|
abstract java.util.Set<java.lang.String> |
cohorts()
Current user cohorts set
|
abstract java.lang.String |
country()
Current user country:
"ISO_CODE" of the country if set
"" if set to do not record, that is user opt out from location services
{code null} if not specified, geoip is used on the server
|
abstract java.util.Map<java.lang.String,java.lang.Object> |
custom()
Current user custom data map
|
abstract UserEditor |
edit()
Edit this user.
|
abstract java.lang.String |
email()
Current user email
|
abstract User.Gender |
gender()
Current user gender
|
abstract java.lang.String |
id()
Current device id
|
abstract java.lang.String |
locale()
Current user locale in "lang_COUNTRY", like en_US or de_DE if default device locale is overridden.
|
abstract java.lang.String |
location()
Current user location (string of "LAT,LON" format):
"LAT,LON" if set
"" if set to do not record, that is user opt out from location services
{code null} if not specified, geoip is used on the server
|
abstract java.lang.String |
name()
Current user name
|
abstract java.lang.String |
org()
Current user organization
|
abstract java.lang.String |
phone()
Current user phone
|
abstract byte[] |
picture()
Current user picture
|
abstract java.lang.String |
picturePath()
Current user picture path
|
abstract java.lang.String |
username()
Current username
|
public abstract java.lang.String id()
public abstract java.lang.String name()
public abstract java.lang.String username()
public abstract java.lang.String email()
public abstract java.lang.String org()
public abstract java.lang.String phone()
public abstract byte[] picture()
public abstract java.lang.String picturePath()
public abstract User.Gender gender()
public abstract java.lang.Integer birthyear()
public abstract java.lang.String locale()
DeviceCore.getLocale().public abstract java.lang.String country()
public abstract java.lang.String city()
public abstract java.lang.String location()
public abstract java.util.Set<java.lang.String> cohorts()
public abstract java.util.Map<java.lang.String,java.lang.Object> custom()
public abstract UserEditor edit()
UserEditor.commit() call.UserEditor object