public class User extends Model
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCEPTED_EXTENSIONS |
static java.lang.String |
ACCEPTED_FORMATS |
static java.lang.String |
COMET_CHANNEL |
static java.lang.String |
COUNTRY |
static java.lang.String |
CREATED_AT |
static java.lang.String |
MEDIA_FILES_COUNT |
static java.lang.String |
OFFLINE_PLAYLIST |
static java.lang.String |
PLAN |
static java.lang.String |
PLAYLISTS_COUNT |
static java.lang.String |
REAL_NAME |
static java.lang.String |
SUBSCRIPTION_STATE |
static java.lang.String |
TIME_ZONE |
static java.lang.String |
TOTAL_PLAY_COUNT |
static java.lang.String |
UPDATED_AT |
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAcceptedExtensions()
Gets accepted extensions.
|
java.lang.String |
getAcceptedFormats()
Gets accepted formats.
|
java.lang.String |
getAuthToken()
Gets the current authentication token for the user.
|
java.lang.String |
getCometChannel()
Gets the unique push engine channel for this user.
|
java.lang.String |
getCountry()
Gets country.
|
java.lang.String |
getCreatedAt()
Gets the user creation time (in form of an UTC String).
|
java.lang.String |
getEmail()
Gets email.
|
ExternalTokens |
getExternalTokens()
Gets the user's
ExternalTokens that indicates if AudioBox have stored an OAuth
token for the user. |
long |
getId()
Gets id.
|
long |
getMediaFilesCount()
Gets total media files count.
|
java.lang.String |
getOfflinePlaylist()
Gets offline playlist token.
|
Permissions |
getPermissions()
Gets the hash that defines the boolean permissions the user has access to, depending on subscription state if it's
a paid feature.
|
java.lang.String |
getPlan()
Gets the plan name the user is subscribed to, if any..
|
long |
getPlaylistsCount()
Gets playlists count.
|
Preferences |
getPreferences()
Gets the user's
Preferences
Preferences are never null |
java.lang.String |
getRealName()
Gets real name.
|
Stats |
getStats()
Gets the user's
Stats |
java.lang.String |
getSubscriptionState()
Gets the string identifying the paid subscription states for this user.
|
java.lang.String |
getTimeZone()
Gets time zone.
|
long |
getTotalPlayCount()
Gets total play count.
|
java.lang.String |
getUpdatedAt()
Gets the last time (in form of an UTC String) this account have been changed.
|
boolean |
savePreferences(AudioBoxClient audioBoxClient)
Saves user preferences
|
getProp, notifyObservers, setProppublic static final java.lang.String REAL_NAME
public static final java.lang.String TIME_ZONE
public static final java.lang.String ACCEPTED_EXTENSIONS
public static final java.lang.String ACCEPTED_FORMATS
public static final java.lang.String COUNTRY
public static final java.lang.String PLAYLISTS_COUNT
public static final java.lang.String TOTAL_PLAY_COUNT
public static final java.lang.String MEDIA_FILES_COUNT
public static final java.lang.String SUBSCRIPTION_STATE
public static final java.lang.String COMET_CHANNEL
public static final java.lang.String PLAN
public static final java.lang.String CREATED_AT
public static final java.lang.String UPDATED_AT
public static final java.lang.String OFFLINE_PLAYLIST
public long getId()
public java.lang.String getCreatedAt()
public java.lang.String getUpdatedAt()
public java.lang.String getRealName()
public java.lang.String getEmail()
public java.lang.String getAuthToken()
public long getMediaFilesCount()
public long getPlaylistsCount()
public long getTotalPlayCount()
public java.lang.String getCountry()
public java.lang.String getTimeZone()
public java.lang.String getAcceptedExtensions()
public java.lang.String getAcceptedFormats()
public java.lang.String getCometChannel()
public java.lang.String getSubscriptionState()
public java.lang.String getPlan()
public java.lang.String getOfflinePlaylist()
public Permissions getPermissions()
Permissionspublic ExternalTokens getExternalTokens()
ExternalTokens that indicates if AudioBox have stored an OAuth
token for the user.
Such attributes are automatically set by the system and cannot be changed manually.public Preferences getPreferences()
Preferences
public boolean savePreferences(AudioBoxClient audioBoxClient) throws java.io.IOException
audioBoxClient - the clientAudioBoxException - if any of the remote error exception is detected.java.io.IOException - if any connection problem occurs.AudioBoxException