com.google.code.facebookapi
Class AttachmentMediaMP3
java.lang.Object
com.google.code.facebookapi.AttachmentMedia
com.google.code.facebookapi.AttachmentMediaMP3
- All Implemented Interfaces:
- ToJsonObject, java.io.Serializable
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)},
Serialized Form
|
Constructor Summary |
AttachmentMediaMP3()
|
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()
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)
toJson
public org.json.JSONObject toJson()
- Specified by:
toJson in interface ToJsonObject- Overrides:
toJson in class AttachmentMedia
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 © 2010. All Rights Reserved.