java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ForwardSource
- Enclosing class:
- TdApi
Contains information about the last message from which a new message
was forwarded last time.
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown.static final int
Identifier uniquely determining type of the object.int
Point in time (Unix timestamp) when the message is sent; 0 if unknown.boolean
True, if the message that was forwarded is outgoing; always false if sender is unknown.long
Identifier of the message; may be 0 if unknown.Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages.Name of the sender of the message if the sender is hidden by their privacy settings. -
Constructor Summary
ConstructorDescriptionContains information about the last message from which a new message was forwarded last time.ForwardSource
(long chatId, long messageId, TdApi.MessageSender senderId, String senderName, int date, boolean isOutgoing) Contains information about the last message from which a new message was forwarded last time.ForwardSource
(DataInput input) Contains information about the last message from which a new message was forwarded last time. -
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
-
chatId
public long chatIdIdentifier of the chat to which the message that was forwarded belonged; may be 0 if unknown. -
messageId
public long messageIdIdentifier of the message; may be 0 if unknown. -
senderId
Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages. -
senderName
Name of the sender of the message if the sender is hidden by their privacy settings. -
date
public int datePoint in time (Unix timestamp) when the message is sent; 0 if unknown. -
isOutgoing
public boolean isOutgoingTrue, if the message that was forwarded is outgoing; always false if sender is unknown. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ForwardSource
public ForwardSource()Contains information about the last message from which a new message was forwarded last time. -
ForwardSource
public ForwardSource(long chatId, long messageId, TdApi.MessageSender senderId, String senderName, int date, boolean isOutgoing) Contains information about the last message from which a new message was forwarded last time.- Parameters:
chatId
- Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown.messageId
- Identifier of the message; may be 0 if unknown.senderId
- Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages.senderName
- Name of the sender of the message if the sender is hidden by their privacy settings.date
- Point in time (Unix timestamp) when the message is sent; 0 if unknown.isOutgoing
- True, if the message that was forwarded is outgoing; always false if sender is unknown.
-
ForwardSource
Contains information about the last message from which a new message was forwarded last time.- 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()
-