public class MediaEntity extends UrlEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaEntity.Size |
static class |
MediaEntity.Sizes |
| Modifier and Type | Field and Description |
|---|---|
String |
altText |
long |
id
ID of the media expressed as a 64-bit integer.
|
String |
idStr
ID of the media expressed as a string.
|
List<Integer> |
indices
An array of integers indicating the offsets.
|
String |
mediaUrl
A http:// URL pointing directly to the uploaded media file.
|
String |
mediaUrlHttps
A https:// URL pointing directly to the uploaded media file, for embedding on https pages.
|
MediaEntity.Sizes |
sizes
An object showing available sizes for the media file.
|
long |
sourceStatusId
For Tweets containing media that was originally associated with a different tweet, this ID
points to the original Tweet.
|
String |
sourceStatusIdStr
For Tweets containing media that was originally associated with a different tweet, this
string-based ID points to the original Tweet.
|
String |
type
Type of uploaded media.
|
VideoInfo |
videoInfo
An object showing details for the video file.
|
displayUrl, expandedUrl, url| Constructor and Description |
|---|
MediaEntity(String url,
String expandedUrl,
String displayUrl,
int start,
int end,
long id,
String idStr,
String mediaUrl,
String mediaUrlHttps,
MediaEntity.Sizes sizes,
long sourceStatusId,
String sourceStatusIdStr,
String type,
VideoInfo videoInfo,
String altText) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEnd() |
int |
getStart() |
public final long id
public final String idStr
public final String mediaUrl
public final String mediaUrlHttps
public final MediaEntity.Sizes sizes
public final long sourceStatusId
public final String sourceStatusIdStr
public final String type
public final VideoInfo videoInfo
public final String altText
public final List<Integer> indices
public MediaEntity(String url,
String expandedUrl,
String displayUrl,
int start,
int end,
long id,
String idStr,
String mediaUrl,
String mediaUrlHttps,
MediaEntity.Sizes sizes,
long sourceStatusId,
String sourceStatusIdStr,
String type,
VideoInfo videoInfo,
String altText)