public final class Tune extends Object
<tune/> element in the http://jabber.org/protocol/tune namespace.
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/tune
|
| Constructor and Description |
|---|
Tune(String artist,
String title) |
Tune(String artist,
String title,
Integer length,
Integer rating,
String source,
String track,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArtist()
Gets the artist or performer of the song or piece.
|
Integer |
getLength()
Gets the duration of the song or piece in seconds.
|
Integer |
getRating()
Gets the user's rating of the song or piece, from 1 (lowest) to 10 (highest).
|
String |
getSource()
Gets the collection (e.g., album) or other source (e.g., a band website that hosts streams or audio files).
|
String |
getTitle()
Gets the title of the song or piece.
|
String |
getTrack()
Gets a unique identifier for the tune; e.g., the track number within a collection or the specific URI for the object (e.g., a stream or audio file).
|
URI |
getUri()
Gets a URI or URL pointing to information about the song, collection, or artist.
|
String |
toString() |
public static final String NAMESPACE
public final String getArtist()
public final Integer getLength()
public final Integer getRating()
public final String getSource()
public final String getTitle()
public final String getTrack()
public final URI getUri()
Copyright © 2014–2018 XMPP.rocks. All rights reserved.