com.google.code.facebookapi
Class AttachmentMediaMP3
java.lang.Object
com.google.code.facebookapi.AttachmentMedia
com.google.code.facebookapi.AttachmentMediaMP3
public class AttachmentMediaMP3
- extends AttachmentMedia
A simple data structure for mp3 media type used by Attachment.
- See Also:
http://wiki.developers.facebook.com/index.php/Attachment_(Streams)}
|
Constructor Summary |
AttachmentMediaMP3()
Construct a MP3 attachment. |
AttachmentMediaMP3(java.lang.String src,
java.lang.String title,
java.lang.String artist,
java.lang.String album)
Construct a MP3 attachment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentMediaMP3
public AttachmentMediaMP3(java.lang.String src,
java.lang.String title,
java.lang.String artist,
java.lang.String album)
- Construct a MP3 attachment.
- Parameters:
src - URL of the MP3 file to be rendered within Facebook's MP3 player widget.title - MP3 title. (optional)artist - MP3 artist. (optional)album - MP3 album. (optional)
AttachmentMediaMP3
public AttachmentMediaMP3()
- Construct a MP3 attachment.
toJson
public org.json.JSONArray toJson()
- Specified by:
toJson in class AttachmentMedia
- Returns:
- a JSON representation of attachment.
getSrc
public java.lang.String getSrc()
setSrc
public void setSrc(java.lang.String src)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String title)
getArtist
public java.lang.String getArtist()
setArtist
public void setArtist(java.lang.String artist)
getAlbum
public java.lang.String getAlbum()
setAlbum
public void setAlbum(java.lang.String album)
Copyright © 2009. All Rights Reserved.