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, getRateLimitStatusclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessLevel, getRateLimitStatusprivate 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
TwitterExceptionOEmbedJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionprivate void init(JSONObject json) throws TwitterException
TwitterExceptionpublic java.lang.String getHtml()
OEmbedpublic java.lang.String getAuthorName()
OEmbedgetAuthorName in interface OEmbedpublic java.lang.String getURL()
OEmbedpublic java.lang.String getVersion()
OEmbedgetVersion in interface OEmbedpublic long getCacheAge()
OEmbedgetCacheAge in interface OEmbedpublic java.lang.String getAuthorURL()
OEmbedgetAuthorURL in interface OEmbedpublic int getWidth()
OEmbedpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object