com.google.code.facebookapi
Class AttachmentMediaImage

java.lang.Object
  extended by com.google.code.facebookapi.AttachmentMedia
      extended by com.google.code.facebookapi.AttachmentMediaImage

public class AttachmentMediaImage
extends AttachmentMedia

A simple data structure for image media type used by Attachment.

See Also:
http://wiki.developers.facebook.com/index.php/Attachment_(Streams)}

Constructor Summary
AttachmentMediaImage()
           
 
Method Summary
 void addImage(java.lang.String src, java.lang.String href)
          Add an image.
 org.json.JSONArray 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

AttachmentMediaImage

public AttachmentMediaImage()
Method Detail

addImage

public void addImage(java.lang.String src,
                     java.lang.String href)
Add an image. Max number of images is 5.

Parameters:
src - URL of the image.
href - Location to link image to.

toJson

public org.json.JSONArray toJson()
Specified by:
toJson in class AttachmentMedia
Returns:
a JSON representation of attachment.


Copyright © 2009. All Rights Reserved.