com.google.code.facebookapi
Class AttachmentProperty

java.lang.Object
  extended by com.google.code.facebookapi.AttachmentProperty

public class AttachmentProperty
extends java.lang.Object

A simple data structure for property link type used by Attachment.

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

Constructor Summary
AttachmentProperty(java.lang.String caption, java.lang.String text, java.lang.String href)
          Constructor.
 
Method Summary
 java.lang.String getCaption()
           
 java.lang.String getHref()
           
 java.lang.String getText()
           
 org.json.JSONObject toJson()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentProperty

public AttachmentProperty(java.lang.String caption,
                          java.lang.String text,
                          java.lang.String href)
Constructor.

Parameters:
caption - The caption (required).
text - The text for link (required).
href - The target for link (required).
Method Detail

toJson

public org.json.JSONObject toJson()
Returns:
JSON Object of this attachment link.

getHref

public java.lang.String getHref()

getText

public java.lang.String getText()

getCaption

public java.lang.String getCaption()


Copyright © 2009. All Rights Reserved.