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