public final class Tune extends Object
<tune/> element in the http://jabber.org/protocol/tune namespace.| Constructor and Description |
|---|
Tune() |
Tune(String artist,
String title) |
| 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.
|
void |
setArtist(String artist)
Sets the artist or performer of the song or piece.
|
void |
setLength(Integer length)
Sets the duration of the song or piece in seconds.
|
void |
setRating(Integer rating)
Sets the user's rating of the song or piece, from 1 (lowest) to 10 (highest).
|
void |
setSource(String source)
Sets the collection (e.g., album) or other source (e.g., a band website that hosts streams or audio files).
|
void |
setTitle(String title)
Sets the title of the song or piece.
|
void |
setTrack(String track)
Sets 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).
|
void |
setUri(URI uri)
Sets a URI or URL pointing to information about the song, collection, or artist.
|
public String getArtist()
setArtist(String)public void setArtist(String artist)
artist - The artist.getArtist()public Integer getLength()
setLength(Integer)public void setLength(Integer length)
length - The length.getLength()public Integer getRating()
setRating(Integer)public void setRating(Integer rating)
rating - The rating.getRating()public String getSource()
setSource(String)public void setSource(String source)
source - The source.getSource()public String getTitle()
setTitle(String)public void setTitle(String title)
title - The title.getTitle()public String getTrack()
setTrack(String)public void setTrack(String track)
track - The track.getTrack()public URI getUri()
setUri(java.net.URI)public void setUri(URI uri)
uri - The URI.setUri(java.net.URI)Copyright © 2014 XMPP.rocks. All rights reserved.