java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PushMessageContent
it.tdlight.jni.TdApi.PushMessageContentMediaAlbum
- Enclosing class:
- TdApi
A media album.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
True, if the album has at least one audio file.boolean
True, if the album has at least one document.boolean
True, if the album has at least one photo.boolean
True, if the album has at least one video file.int
Number of messages in the album. -
Constructor Summary
ConstructorDescriptionA media album.PushMessageContentMediaAlbum
(int totalCount, boolean hasPhotos, boolean hasVideos, boolean hasAudios, boolean hasDocuments) A media album.A media album. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
totalCount
public int totalCountNumber of messages in the album. -
hasPhotos
public boolean hasPhotosTrue, if the album has at least one photo. -
hasVideos
public boolean hasVideosTrue, if the album has at least one video file. -
hasAudios
public boolean hasAudiosTrue, if the album has at least one audio file. -
hasDocuments
public boolean hasDocumentsTrue, if the album has at least one document. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PushMessageContentMediaAlbum
public PushMessageContentMediaAlbum()A media album. -
PushMessageContentMediaAlbum
public PushMessageContentMediaAlbum(int totalCount, boolean hasPhotos, boolean hasVideos, boolean hasAudios, boolean hasDocuments) A media album.- Parameters:
totalCount
- Number of messages in the album.hasPhotos
- True, if the album has at least one photo.hasVideos
- True, if the album has at least one video file.hasAudios
- True, if the album has at least one audio file.hasDocuments
- True, if the album has at least one document.
-
PushMessageContentMediaAlbum
A media album.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-