com.google.code.facebookapi
Class BundleStoryTemplate
java.lang.Object
com.google.code.facebookapi.BundleStoryTemplate
- All Implemented Interfaces:
- java.io.Serializable
public class BundleStoryTemplate
- extends java.lang.Object
- implements java.io.Serializable
A simple data structure for storing a story-template used in the feed_registerTemplateBundle API call.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleStoryTemplate
public BundleStoryTemplate()
- Constructor. If you use this version, you must make sure you set both the 'title' and 'body' fields before trying to submit your template, otherwise it will not
serialize correctly.
BundleStoryTemplate
public BundleStoryTemplate(java.lang.String title,
java.lang.String body)
- Constructor.
- Parameters:
title - the title to show for this template.body - the body content for this template.
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.
getBody
public java.lang.String getBody()
- Returns:
- the body of this template.
setBody
public void setBody(java.lang.String body)
- Parameters:
body - the body content to set.
getTitle
public java.lang.String getTitle()
- Returns:
- the title to display for this template.
setTitle
public void setTitle(java.lang.String title)
- Parameters:
title - the title to set.
Copyright © 2008. All Rights Reserved.