Package org.drinkless.tdlib
Class TdApi.SavedMessagesTopic
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.SavedMessagesTopic
- Enclosing class:
- TdApi
Contains information about a Saved Messages topic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.A draft of a message in the topic; may be null if none.longUnique topic identifier.booleanTrue, if the topic is pinned.Last message in the topic; may be null if none or unknown.longA parameter used to determine order of the topic in the topic list.Type of the topic. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about a Saved Messages topic.SavedMessagesTopic(long id, TdApi.SavedMessagesTopicType type, boolean isPinned, long order, TdApi.Message lastMessage, TdApi.DraftMessage draftMessage) Contains information about a Saved Messages topic. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
public long idUnique topic identifier. -
type
Type of the topic. -
isPinned
public boolean isPinnedTrue, if the topic is pinned. -
order
public long orderA parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order. -
lastMessage
Last message in the topic; may be null if none or unknown. -
draftMessage
A draft of a message in the topic; may be null if none. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SavedMessagesTopic
public SavedMessagesTopic()Contains information about a Saved Messages topic. -
SavedMessagesTopic
public SavedMessagesTopic(long id, TdApi.SavedMessagesTopicType type, boolean isPinned, long order, TdApi.Message lastMessage, TdApi.DraftMessage draftMessage) Contains information about a Saved Messages topic.- Parameters:
id- Unique topic identifier.type- Type of the topic.isPinned- True, if the topic is pinned.order- A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.lastMessage- Last message in the topic; may be null if none or unknown.draftMessage- A draft of a message in the topic; may be null if none.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-