java.lang.Object | |
↳ | com.urbanairship.iam.MediaInfo |
Media display info.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | MediaInfo.Builder | Media info builder. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TYPE_IMAGE | Image media type. | |||||||||
String | TYPE_VIDEO | Video media type. | |||||||||
String | TYPE_YOUTUBE | Youtube media type. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
static MediaInfo | fromJson(JsonValue value) | ||||||||||
String |
getDescription()
Returns the media description.
| ||||||||||
String |
getType()
Returns the media type.
| ||||||||||
String |
getUrl()
Returns the media URL.
| ||||||||||
int | hashCode() | ||||||||||
static MediaInfo.Builder |
newBuilder()
Builder factory method.
| ||||||||||
static MediaInfo.Builder |
newBuilder(MediaInfo mediaInfo)
Creates a builder from existing media info.
| ||||||||||
JsonValue |
toJsonValue()
Returns the objects represented as a JsonValue.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.json.JsonSerializable
|
value | The json value. |
---|
JsonException | If the media info was unable to be parsed. |
---|
Creates a builder from existing media info.
mediaInfo | The media info. |
---|
Returns the objects represented as a JsonValue.