public class OEmbedJSONImpl extends TwitterResponseImpl implements OEmbed, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
authorName |
private java.lang.String |
authorURL |
private long |
cacheAge |
private java.lang.String |
html |
private static long |
serialVersionUID |
private java.lang.String |
url |
private java.lang.String |
version |
private int |
width |
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES
Constructor and Description |
---|
OEmbedJSONImpl(HttpResponse res,
Configuration conf) |
OEmbedJSONImpl(JSONObject json) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAuthorName()
The name of the author/owner of the resource.
|
java.lang.String |
getAuthorURL()
A URL for the author/owner of the resource.
|
long |
getCacheAge()
The suggested cache lifetime for this resource, in seconds.
|
java.lang.String |
getHtml()
The HTML required to display the resource.
|
java.lang.String |
getURL()
The url of the resource provider.
The source URL of the image. |
java.lang.String |
getVersion()
The oEmbed version number.
|
int |
getWidth()
The width in pixels of the image specified in the url parameter.
|
int |
hashCode() |
private void |
init(JSONObject json) |
java.lang.String |
toString() |
getAccessLevel, getRateLimitStatus
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAccessLevel, getRateLimitStatus
private static final long serialVersionUID
private java.lang.String html
private java.lang.String authorName
private java.lang.String url
private java.lang.String version
private long cacheAge
private java.lang.String authorURL
private int width
OEmbedJSONImpl(HttpResponse res, Configuration conf) throws TwitterException
TwitterException
OEmbedJSONImpl(JSONObject json) throws TwitterException
TwitterException
private void init(JSONObject json) throws TwitterException
TwitterException
public java.lang.String getHtml()
OEmbed
public java.lang.String getAuthorName()
OEmbed
getAuthorName
in interface OEmbed
public java.lang.String getURL()
OEmbed
public java.lang.String getVersion()
OEmbed
getVersion
in interface OEmbed
public long getCacheAge()
OEmbed
getCacheAge
in interface OEmbed
public java.lang.String getAuthorURL()
OEmbed
getAuthorURL
in interface OEmbed
public int getWidth()
OEmbed
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object