Package rocks.xmpp.extensions.tune.model
Class Tune
- java.lang.Object
-
- rocks.xmpp.extensions.tune.model.Tune
-
public final class Tune extends Object
The implementation of the<tune/>element in thehttp://jabber.org/protocol/tunenamespace.This class is immutable.
- See Also:
- XEP-0118: User Tune, XML Schema
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArtist()Gets the artist or performer of the song or piece.IntegergetLength()Gets the duration of the song or piece in seconds.IntegergetRating()Gets the user's rating of the song or piece, from 1 (lowest) to 10 (highest).StringgetSource()Gets the collection (e.g., album) or other source (e.g., a band website that hosts streams or audio files).StringgetTitle()Gets the title of the song or piece.StringgetTrack()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).URIgetUri()Gets a URI or URL pointing to information about the song, collection, or artist.StringtoString()
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
http://jabber.org/protocol/tune- See Also:
- Constant Field Values
-
-
Method Detail
-
getArtist
public final String getArtist()
Gets the artist or performer of the song or piece.- Returns:
- The artist.
-
getLength
public final Integer getLength()
Gets the duration of the song or piece in seconds.- Returns:
- The duration.
-
getRating
public final Integer getRating()
Gets the user's rating of the song or piece, from 1 (lowest) to 10 (highest).- Returns:
- The rating.
-
getSource
public final String getSource()
Gets the collection (e.g., album) or other source (e.g., a band website that hosts streams or audio files).- Returns:
- The source.
-
getTitle
public final String getTitle()
Gets the title of the song or piece.- Returns:
- The title.
-
getTrack
public final 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).- Returns:
- The track.
-
getUri
public final URI getUri()
Gets a URI or URL pointing to information about the song, collection, or artist.- Returns:
- The URI.
-
-