com.google.code.facebookapi
Class AttachmentMediaMP3

java.lang.Object
  extended by com.google.code.facebookapi.AttachmentMedia
      extended by 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.
 
Method Summary
 java.lang.String getAlbum()
           
 java.lang.String getArtist()
           
 java.lang.String getSrc()
           
 java.lang.String getTitle()
           
 void setAlbum(java.lang.String album)
           
 void setArtist(java.lang.String artist)
           
 void setSrc(java.lang.String src)
           
 void setTitle(java.lang.String title)
           
 org.json.JSONObject toJson()
           
 
Methods inherited from class com.google.code.facebookapi.AttachmentMedia
getMediaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.