java.lang.Object |
↳ |
java.util.Observable |
|
↳ |
fm.audiobox.core.models.Model |
Known Direct Subclasses
Album,
Albums,
Artist,
Artists,
ExternalTokens,
Genre,
Genres,
MediaFile,
MediaFileWrapper,
MediaFiles,
Notification,
Notifications,
Permissions,
Playlist,
PlaylistWrapper,
Playlists,
Preferences,
Stats,
User,
UserWrapper
Album |
Container class for a collection of MediaFile grouped by album. |
Albums |
Albums wrapper model. |
Artist |
Container class for a collection of MediaFile grouped by album. |
Artists |
Artists wrapper model. |
ExternalTokens |
For each of the external services the boolean value indicates if we have stored a OAuth token for the user. |
Genre |
Container class for a collection of MediaFile grouped by album. |
Genres |
Genres wrapper model. |
MediaFile |
Media Files are the most important entity in the platform, has many properties, are editable, deletable and streamable. |
MediaFileWrapper |
This class is used as simple MediaFile wrapper
for those JSON parser that do not support root elements. |
MediaFiles |
Used to get a list of all media files in a specific user's playlist. |
Notification |
Notifications are system messages that the AudioBox will send the user, for example when a Cloud Drive needs
to be re-authenticated or if some operation fails. |
Notifications |
Returns a paginated collection of user's Notifications . |
Permissions |
A user can subscribe and manage multiple remote storage services. |
Playlist |
Playlists are the main containers for Media Files and are represented in the system by an unique token. |
PlaylistWrapper |
This class is used as simple Playlist wrapper
for those JSON parser that do not support root elements. |
Playlists |
Used to get a list of all the playlist in the user's account. |
Preferences |
General preferences of the user, mostly used in the Cloud Web Player. |
Stats |
Bytes long values showing the storage used for each supported
storage service and the amount of data that has been streamed. |
User |
A User can interact with his own files in different ways, depending on the remote storage in play. |
UserWrapper |
This class is used as simple User wrapper
for those JSON parser that do not support root elements. |
|
Class Overview
This class is the prototype of each model and defines model's common behaviors.
Summary
Public Constructors |
|
Model()
|
Public Methods |
final
Object
|
getProp(String key)
Gets the requested property or null.
|
void
|
notifyObservers(Object arg)
|
final
void
|
setProp(String key, Object value)
Sets a property to the model
|
[Expand]
Inherited Methods |
From class
java.util.Observable
synchronized
void
|
addObserver(Observer arg0)
|
synchronized
void
|
clearChanged()
|
synchronized
int
|
countObservers()
|
synchronized
void
|
deleteObserver(Observer arg0)
|
synchronized
void
|
deleteObservers()
|
synchronized
boolean
|
hasChanged()
|
void
|
notifyObservers()
|
void
|
notifyObservers(Object arg0)
|
synchronized
void
|
setChanged()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
Public Methods
public
final
Object
getProp
(String key)
Gets the requested property or null.
Parameters
key |
the key where the value was previously stored. |
public
void
notifyObservers
(Object arg)
public
final
void
setProp
(String key, Object value)
Sets a property to the model
Parameters
key |
the key to store the value to. |
value |
the value to set.
|