public abstract class Media
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
Media.Builder |
| Constructor and Description |
|---|
Media() |
| Modifier and Type | Method and Description |
|---|---|
static Media.Builder |
builder() |
abstract java.lang.Integer |
duration()
Duration of media file in seconds.
|
abstract java.lang.String |
hash()
ETag hash for checking if file changed (
MediaType.BrandCover and MediaType.City has no hash). |
abstract java.lang.Integer |
order()
Defines in what order to show\play media.
|
abstract java.lang.Long |
size()
Media size in bytes (
MediaType.BrandCover and MediaType.City has no size). |
abstract java.lang.String |
title()
Title of media.
|
abstract MediaType |
type()
Type of media.
|
abstract java.lang.String |
url()
Direct URL to media when a parameter media_links set to true.
|
abstract java.lang.String |
uuid()
Universally Unique Identifier of media file.
|
public static Media.Builder builder()
public abstract java.lang.String uuid()
public abstract MediaType type()
public abstract java.lang.Integer order()
public abstract java.lang.Integer duration()
public abstract java.lang.String url()
public abstract java.lang.String title()
MediaType.Map and MediaType.Story images.public abstract java.lang.String hash()
MediaType.BrandCover and MediaType.City has no hash).public abstract java.lang.Long size()
MediaType.BrandCover and MediaType.City has no size).
In case of images with type MediaType.Story, the size of 800x600 image version is
used.