public interface OpenGraphAction extends GraphObject
Modifier and Type | Interface and Description |
---|---|
static class |
OpenGraphAction.Factory
Exposes helpers for creating instances of OpenGraphAction.
|
Modifier and Type | Method and Description |
---|---|
GraphObject |
getApplication()
Gets the application that created this action.
|
JSONObject |
getComments()
Gets the comments that have been made on this action.
|
Date |
getCreatedTime()
Gets the time the action was created.
|
GraphObject |
getData()
Gets the type-specific data for this action; for instance, any properties
referencing Open Graph objects will appear under here.
|
Date |
getEndTime()
Gets the end time of the action.
|
Date |
getExpiresTime()
Gets the time the action expires at.
|
GraphUser |
getFrom()
Gets the from-user associated with the action.
|
String |
getId()
Gets the ID of the action.
|
List<JSONObject> |
getImage()
Gets the images that were associated with the action.
|
JSONObject |
getLikes()
Gets the 'likes' that have been performed on this action.
|
String |
getMessage()
Gets the message assoicated with the action.
|
GraphPlace |
getPlace()
Gets the place where the action took place.
|
Date |
getPublishTime()
Gets the time the action was published, if any.
|
String |
getRef()
Gets the unique string which will be passed to the OG Action owner's website
when a user clicks through this action on Facebook.
|
Date |
getStartTime()
Gets the start time of the action.
|
GraphObjectList<GraphObject> |
getTags()
Gets the list of profiles that were tagged in the action.
|
String |
getType()
Gets the type of the action, which is a string in the form "mynamespace:mytype".
|
void |
setApplication(GraphObject application)
Sets the application that created this action.
|
void |
setComments(JSONObject comments)
Sets the comments that have been made on this action.
|
void |
setCreatedTime(Date createdTime)
Sets the time the action was created.
|
void |
setData(GraphObject data)
Sets the type-specific data for this action.
|
void |
setEndTime(Date endTime)
Sets the end time of the action.
|
void |
setExpiresTime(Date expiresTime)
Sets the time the action expires at.
|
void |
setFrom(GraphUser from)
Sets the from-user associated with the action.
|
void |
setId(String id)
Sets the ID of the action.
|
void |
setImage(List<JSONObject> image)
Sets the images that were associated with the action.
|
void |
setImageUrls(List<String> urls)
Sets the images associated with the Open Graph action by specifying their URLs.
|
void |
setLikes(JSONObject likes)
Sets the 'likes' that have been performed on this action.
|
void |
setMessage(String message)
Sets the message associated with the action.
|
void |
setPlace(GraphPlace place)
Sets the place where the action took place.
|
void |
setPublishTime(Date publishTime)
Sets the time the action was published.
|
void |
setRef(String ref)
Sets the unique string which will be passed to the OG Action owner's website
when a user clicks through this action on Facebook.
|
void |
setStartTime(Date startTime)
Sets the start time of the action.
|
void |
setTags(List<? extends GraphObject> tags)
Sets the list of profiles that were tagged in the action.
|
void |
setType(String type)
Sets the type of the action, which is a string in the form "mynamespace:mytype".
|
asMap, cast, getInnerJSONObject, getProperty, getPropertyAs, getPropertyAsList, removeProperty, setProperty
String getId()
void setId(String id)
id
- the IDString getType()
void setType(String type)
type
- the typeDate getStartTime()
void setStartTime(Date startTime)
startTime
- the start timeDate getEndTime()
void setEndTime(Date endTime)
endTime
- the end timeDate getPublishTime()
void setPublishTime(Date publishTime)
publishTime
- the publish timeDate getCreatedTime()
void setCreatedTime(Date createdTime)
createdTime
- the creation timeDate getExpiresTime()
void setExpiresTime(Date expiresTime)
expiresTime
- the expiration timeString getRef()
void setRef(String ref)
ref
- the ref stringString getMessage()
void setMessage(String message)
message
- the messageGraphPlace getPlace()
void setPlace(GraphPlace place)
place
- the placeGraphObjectList<GraphObject> getTags()
void setTags(List<? extends GraphObject> tags)
tags
- the profiles that were tagged in the actionList<JSONObject> getImage()
void setImage(List<JSONObject> image)
image
- the imagesvoid setImageUrls(List<String> urls)
urls
- the URLsGraphUser getFrom()
void setFrom(GraphUser from)
from
- the from-userJSONObject getLikes()
void setLikes(JSONObject likes)
likes
- the likesGraphObject getApplication()
void setApplication(GraphObject application)
application
- the applicationJSONObject getComments()
void setComments(JSONObject comments)
comments
- the commentsGraphObject getData()
void setData(GraphObject data)
data
- a GraphObject representing the type-specific data