java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatMemberStatus
it.tdlight.jni.TdApi.ChatMemberStatusBanned
- Enclosing class:
- TdApi
The user or the chat was banned (and hence is not a member of the
chat). Implies the user can't return to the chat, view messages, or
be used as a participant identifier to join a video chat of the chat.
-
Field Summary
Modifier and TypeFieldDescriptionint
Point in time (Unix timestamp) when the user will be unbanned; 0 if never.static final int
Identifier uniquely determining type of the object. -
Constructor Summary
ConstructorDescriptionThe user or the chat was banned (and hence is not a member of the chat).ChatMemberStatusBanned
(int bannedUntilDate) The user or the chat was banned (and hence is not a member of the chat).ChatMemberStatusBanned
(DataInput input) The user or the chat was banned (and hence is not a member of the chat). -
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
-
bannedUntilDate
public int bannedUntilDatePoint in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Always 0 in basic groups. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatMemberStatusBanned
public ChatMemberStatusBanned()The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat. -
ChatMemberStatusBanned
public ChatMemberStatusBanned(int bannedUntilDate) The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat.- Parameters:
bannedUntilDate
- Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Always 0 in basic groups.
-
ChatMemberStatusBanned
The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat.- 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()
-