public class Media extends java.lang.Object implements IZITravelEntity
| Modifier and Type | Field and Description |
|---|---|
int |
duration
Duration of media file in seconds.
|
java.lang.String |
hash
ETag hash for checking if file changed (
MediaType.BrandCover and MediaType.City has no hash). |
int |
order
Defines in what order to show\play media.
|
java.lang.Long |
size
Media size in bytes (
MediaType.BrandCover and MediaType.City has no size). |
java.lang.String |
title
Title of media.
|
MediaType |
type
Type of media.
|
java.lang.String |
url
Direct URL to media when a parameter media_links set to true.
|
java.lang.String |
uuid
Universally Unique Identifier of media file.
|
| Constructor and Description |
|---|
Media() |
public java.lang.String uuid
public MediaType type
public int order
public int duration
public java.lang.String url
public java.lang.String title
MediaType.Map and MediaType.Story images.public java.lang.String hash
MediaType.BrandCover and MediaType.City has no hash).public 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.