Constructor and Description |
---|
Media.Caption(JSONObject captionObject)
Makes a new caption object out of a JSONObject
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Checks if two caption objects are equal
|
String |
getCreatedTimestamp()
Returns the caption's creation timestamp as a string
|
User |
getFrom()
Returns the creator of this caption
|
String |
getId()
Returns id of this caption
|
String |
getText()
Returns the text for this caption
|
protected void |
setCreatedTimestamp(String createdTimestamp)
Sets the creation timestamp for this caption
|
protected void |
setFrom(User from)
Sets creator of this caption
|
protected void |
setId(String id)
Sets creator of this caption
|
protected void |
setText(String text)
Sets the text for this caption
|
public Media.Caption(JSONObject captionObject) throws JSONException
captionObject
- json object used to create this captionJSONException
public String getText()
protected void setText(String text)
text
- the text for this captionpublic String getCreatedTimestamp()
protected void setCreatedTimestamp(String createdTimestamp)
createdTimestamp
- the string representation of the creation timestamp for this captionpublic User getFrom()
protected void setFrom(User from)
from
- The user object representing the creator of the captionpublic String getId()
protected void setId(String id)
from
- The user object representing the creator of the captionCopyright © 2013. All Rights Reserved.