Provides a strongly-typed representation of an Open Graph Action. For more documentation of OG Actions, see: https://developers.facebook.com/docs/opengraph/actions/
Note that this interface is intended to be used with GraphObject.Factory or OpenGraphAction.Factory and not implemented directly.
Реализует: | GraphObject |
Пакет: | model |
getId()
Gets the ID of the action.
public String getId()
setId(String)
Sets the ID of the action.
public void setId(String id)
Параметр | Описание |
---|---|
id | The ID |
getType()
Gets the type of the action, which is a string in the form "mynamespace:mytype".
public String getType()
setType(String)
Sets the type of the action, which is a string in the form "mynamespace:mytype".
public void setType(String type)
Параметр | Описание |
---|---|
type | The type |
getStartTime()
Gets the start time of the action.
public Date getStartTime()
setStartTime(Date)
Sets the start time of the action.
public void setStartTime(Date startTime)
Параметр | Описание |
---|---|
startTime | The start time |
getEndTime()
Gets the end time of the action.
public Date getEndTime()
setEndTime(Date)
Sets the end time of the action.
public void setEndTime(Date endTime)
Параметр | Описание |
---|---|
endTime | The end time |
getPublishTime()
Gets the time the action was published, if any.
public Date getPublishTime()
setPublishTime(Date)
Sets the time the action was published.
public void setPublishTime(Date publishTime)
Параметр | Описание |
---|---|
publishTime | The publish time |
getCreatedTime()
Gets the time the action was created.
public Date getCreatedTime()
setCreatedTime(Date)
Sets the time the action was created.
public void setCreatedTime(Date createdTime)
Параметр | Описание |
---|---|
createdTime | The creation time |
getExpiresTime()
Gets the time the action expires at.
public Date getExpiresTime()
setExpiresTime(Date)
Sets the time the action expires at.
public void setExpiresTime(Date expiresTime)
Параметр | Описание |
---|---|
expiresTime | The expiration time |
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.
public String getRef()
setRef(String)
Sets the unique string which will be passed to the OG Action owner's website when a user clicks through this action on Facebook.
public void setRef(String ref)
Параметр | Описание |
---|---|
ref | The ref string |
getMessage()
Gets the message assoicated with the action.
public String getMessage()
setMessage(String)
Sets the message associated with the action.
public void setMessage(String message)
Параметр | Описание |
---|---|
message | The message |
getPlace()
Gets the place where the action took place.
public GraphPlace getPlace()
setPlace(GraphPlace)
Sets the place where the action took place.
public void setPlace(GraphPlace place)
Параметр | Описание |
---|---|
place | The place |
getTags()
Gets the list of profiles that were tagged in the action.
public GraphObjectList getTags()
setTags(List)
Sets the list of profiles that were tagged in the action.
public void setTags(List tags)
Параметр | Описание |
---|---|
tags | The profiles that were tagged in the action |
getImage()
Gets the images that were associated with the action.
public List getImage()
setImage(List)
Sets the images that were associated with the action.
public void setImage(List image)
Параметр | Описание |
---|---|
image | The images |
setImageUrls(List)
Sets the images associated with the Open Graph action by specifying their URLs. This is a helper that will create GraphObjects with the correct URLs and populate the property with those objects.
public void setImageUrls(List urls)
Параметр | Описание |
---|---|
urls | The URLs |
getFrom()
Gets the from-user associated with the action.
public GraphUser getFrom()
setFrom(GraphUser)
Sets the from-user associated with the action.
public void setFrom(GraphUser from)
Параметр | Описание |
---|---|
from | The from-user |
getLikes()
Gets the 'likes' that have been performed on this action.
public JSONObject getLikes()
setLikes(JSONObject)
Sets the 'likes' that have been performed on this action.
public void setLikes(JSONObject likes)
Параметр | Описание |
---|---|
likes | The likes |
getApplication()
Gets the application that created this action.
public GraphObject getApplication()
setApplication(GraphObject)
Sets the application that created this action.
public void setApplication(GraphObject application)
Параметр | Описание |
---|---|
application | The application |
getComments()
Gets the comments that have been made on this action.
public JSONObject getComments()
setComments(JSONObject)
Sets the comments that have been made on this action.
public void setComments(JSONObject comments)
Параметр | Описание |
---|---|
comments | The comments |
getData()
Gets the type-specific data for this action; for instance, any properties referencing Open Graph objects will appear under here.
public GraphObject getData()
setData(GraphObject)
Sets the type-specific data for this action.
public void setData(GraphObject data)
Параметр | Описание |
---|---|
data | A GraphObject representing the type-specific data |