Package it.tdlight.jni
Class TdApi.SecretChat
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.SecretChat
- Enclosing class:
- TdApi
public static class TdApi.SecretChat extends TdApi.Object
Represents a secret chat.
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
int
id
Secret chat identifier.boolean
isOutbound
True, if the chat was created by the current user; otherwise false.byte[]
keyHash
Hash of the currently used key for comparison with the hash of the chat partner's key.int
layer
Secret chat layer; determines features supported by the chat partner's application.TdApi.SecretChatState
state
State of the secret chat.int
ttl
Current message Time To Live setting (self-destruct timer) for the chat, in seconds.int
userId
Identifier of the chat partner. -
Constructor Summary
Constructors Constructor Description SecretChat()
Represents a secret chat.SecretChat(int id, int userId, TdApi.SecretChatState state, boolean isOutbound, int ttl, byte[] keyHash, int layer)
Represents a secret chat.SecretChat(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public int idSecret chat identifier. -
userId
public int userIdIdentifier of the chat partner. -
state
State of the secret chat. -
isOutbound
public boolean isOutboundTrue, if the chat was created by the current user; otherwise false. -
ttl
public int ttlCurrent message Time To Live setting (self-destruct timer) for the chat, in seconds. -
keyHash
public byte[] keyHashHash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers. -
layer
public int layerSecret chat layer; determines features supported by the chat partner's application. Video notes are supported if the layer >= 66; nested text entities and underline and strikethrough entities are supported if the layer >= 101. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SecretChat
public SecretChat()Represents a secret chat. -
SecretChat
public SecretChat(int id, int userId, TdApi.SecretChatState state, boolean isOutbound, int ttl, byte[] keyHash, int layer)Represents a secret chat.- Parameters:
id
- int Secret chat identifier.userId
- int Identifier of the chat partner.state
- SecretChatState State of the secret chat.isOutbound
- boolean True, if the chat was created by the current user; otherwise false.ttl
- int Current message Time To Live setting (self-destruct timer) for the chat, in seconds.keyHash
- byte[] Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers.layer
- int Secret chat layer; determines features supported by the chat partner's application. Video notes are supported if the layer >= 66; nested text entities and underline and strikethrough entities are supported if the layer >= 101.
-
SecretChat
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-