public class Video extends java.lang.Object implements TelegramObject
| Constructor and Description |
|---|
Video(java.lang.String id,
int width,
int height,
int duration) |
Video(java.lang.String id,
int width,
int height,
int duration,
PhotoSize thumbnail,
java.lang.String mimeType,
java.lang.Integer size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getDuration()
Getter for property
duration. |
int |
getHeight()
Getter for property
height. |
java.lang.String |
getId()
Getter for property
id. |
java.util.Optional<java.lang.String> |
getMimeType()
Getter for property
mimeType. |
java.util.OptionalInt |
getSize()
Getter for property
size. |
java.util.Optional<PhotoSize> |
getThumbnail()
Getter for property
thumbnail. |
int |
getWidth()
Getter for property
width. |
int |
hashCode() |
public Video(java.lang.String id,
int width,
int height,
int duration,
PhotoSize thumbnail,
java.lang.String mimeType,
java.lang.Integer size)
public Video(java.lang.String id,
int width,
int height,
int duration)
public int getDuration()
duration.durationpublic java.util.Optional<PhotoSize> getThumbnail()
thumbnail.thumbnailpublic java.util.Optional<java.lang.String> getMimeType()
mimeType.mimeTypepublic java.util.OptionalInt getSize()
size.sizepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object