java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PageBlockRelatedArticle
- Enclosing class:
- TdApi
Contains information about a related article.
-
Field Summary
Modifier and TypeFieldDescriptionArticle author; may be empty.static final int
Identifier uniquely determining type of the object.Article description; may be empty.Article photo; may be null.int
Point in time (Unix timestamp) when the article was published; 0 if unknown.Article title; may be empty.Related article URL. -
Constructor Summary
ConstructorDescriptionContains information about a related article.PageBlockRelatedArticle
(DataInput input) Contains information about a related article.PageBlockRelatedArticle
(String url, String title, String description, TdApi.Photo photo, String author, int publishDate) Contains information about a related article. -
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
-
url
Related article URL. -
title
Article title; may be empty. -
description
Article description; may be empty. -
photo
Article photo; may be null. -
author
Article author; may be empty. -
publishDate
public int publishDatePoint in time (Unix timestamp) when the article was published; 0 if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PageBlockRelatedArticle
public PageBlockRelatedArticle()Contains information about a related article. -
PageBlockRelatedArticle
public PageBlockRelatedArticle(String url, String title, String description, TdApi.Photo photo, String author, int publishDate) Contains information about a related article.- Parameters:
url
- Related article URL.title
- Article title; may be empty.description
- Article description; may be empty.photo
- Article photo; may be null.author
- Article author; may be empty.publishDate
- Point in time (Unix timestamp) when the article was published; 0 if unknown.
-
PageBlockRelatedArticle
Contains information about a related article.- 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()
-