java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatMemberStatus
it.tdlight.jni.TdApi.ChatMemberStatusRestricted
- Enclosing class:
- TdApi
The user is under certain restrictions in the chat. Not supported in
basic groups and channels.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
True, if the user is a member of the chat.User permissions in the chat.int
Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. -
Constructor Summary
ConstructorDescriptionThe user is under certain restrictions in the chat.ChatMemberStatusRestricted
(boolean isMember, int restrictedUntilDate, TdApi.ChatPermissions permissions) The user is under certain restrictions in the chat.The user is under certain restrictions in 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
-
isMember
public boolean isMemberTrue, if the user is a member of the chat. -
restrictedUntilDate
public int restrictedUntilDatePoint in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever. -
permissions
User permissions in the chat. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatMemberStatusRestricted
public ChatMemberStatusRestricted()The user is under certain restrictions in the chat. Not supported in basic groups and channels. -
ChatMemberStatusRestricted
public ChatMemberStatusRestricted(boolean isMember, int restrictedUntilDate, TdApi.ChatPermissions permissions) The user is under certain restrictions in the chat. Not supported in basic groups and channels.- Parameters:
isMember
- True, if the user is a member of the chat.restrictedUntilDate
- Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever.permissions
- User permissions in the chat.
-
ChatMemberStatusRestricted
The user is under certain restrictions in the chat. Not supported in basic groups and channels.- 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()
-