com.google.code.facebookapi
Class BundleActionLink

java.lang.Object
  extended by com.google.code.facebookapi.BundleActionLink
All Implemented Interfaces:
java.io.Serializable

public class BundleActionLink
extends java.lang.Object
implements java.io.Serializable

A simple data structure for storing a story-template action link, used in the feed_registerTemplateBundle API call.

See Also:
http://wiki.developers.facebook.com/index.php/Action_Links}, Serialized Form

Constructor Summary
BundleActionLink()
          Constructor.
BundleActionLink(java.lang.String text, java.lang.String href)
          Constructor.
 
Method Summary
 java.lang.String getHref()
          Get the action link (may include tokens).
 java.lang.String getText()
          Get the text to display for the action.
 void setHref(java.lang.String href)
          Set the action link (may include tokens).
 void setText(java.lang.String text)
          Set the text to display for the action.
 org.json.JSONObject toJson()
           
 java.lang.String toJsonString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleActionLink

public BundleActionLink()
Constructor. If you use this version, you must make sure you set both the 'text' and 'href' fields before trying to submit your template, otherwise it will not serialize correctly.


BundleActionLink

public BundleActionLink(java.lang.String text,
                        java.lang.String href)
Constructor.

Parameters:
text - the text to display for the action.
href - the action link (may include tokens).
Method Detail

toJson

public org.json.JSONObject toJson()
Returns:
a JSON representation of this template.

toJsonString

public java.lang.String toJsonString()
Returns:
a JSON-encoded String representation of this template. The resulting String is appropriate for passing to the Facebook API server.

getText

public final java.lang.String getText()
Get the text to display for the action.


setText

public final void setText(java.lang.String text)
Set the text to display for the action.


getHref

public final java.lang.String getHref()
Get the action link (may include tokens).


setHref

public final void setHref(java.lang.String href)
Set the action link (may include tokens).



Copyright © 2008. All Rights Reserved.