java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.SavedMessagesTopic
- Enclosing class:
- TdApi
Contains information about a Saved Messages topic.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.A draft of a message in the topic; may be null if none.long
Unique topic identifier.boolean
True, if the topic is pinned.Last message in the topic; may be null if none or unknown.long
A parameter used to determine order of the topic in the topic list.Type of the topic. -
Constructor Summary
ConstructorDescriptionContains 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.SavedMessagesTopic
(DataInput input) Contains information about a Saved Messages topic. -
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
-
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.
-
SavedMessagesTopic
Contains information about a Saved Messages topic.- 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()
-