Package it.tdlight.jni
Class TdApi.ChatInviteLink
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatInviteLink
- Enclosing class:
- TdApi
public static class TdApi.ChatInviteLink extends TdApi.Object
Contains a chat invite link.
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
int
creatorUserId
User identifier of an administrator created the link.int
date
Point in time (Unix timestamp) when the link was created.int
editDate
Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.int
expireDate
Point in time (Unix timestamp) when the link will expire; 0 if never.String
inviteLink
Chat invite link.boolean
isPrimary
True, if the link is primary.boolean
isRevoked
True, if the link was revoked.int
memberCount
Number of chat members, which joined the chat using the link.int
memberLimit
Maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. -
Constructor Summary
Constructors Constructor Description ChatInviteLink()
Contains a chat invite link.ChatInviteLink(DataInput input)
ChatInviteLink(String inviteLink, int creatorUserId, int date, int editDate, int expireDate, int memberLimit, int memberCount, boolean isPrimary, boolean isRevoked)
Contains a chat invite link. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
inviteLink
Chat invite link. -
creatorUserId
public int creatorUserIdUser identifier of an administrator created the link. -
date
public int datePoint in time (Unix timestamp) when the link was created. -
editDate
public int editDatePoint in time (Unix timestamp) when the link was last edited; 0 if never or unknown. -
expireDate
public int expireDatePoint in time (Unix timestamp) when the link will expire; 0 if never. -
memberLimit
public int memberLimitMaximum number of members, which can join the chat using the link simultaneously; 0 if not limited. -
memberCount
public int memberCountNumber of chat members, which joined the chat using the link. -
isPrimary
public boolean isPrimaryTrue, if the link is primary. Primary invite link can't have expire date or usage limit. There is exactly one primary invite link for each administrator with canInviteUsers right at a given time. -
isRevoked
public boolean isRevokedTrue, if the link was revoked. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
ChatInviteLink
public ChatInviteLink()Contains a chat invite link. -
ChatInviteLink
public ChatInviteLink(String inviteLink, int creatorUserId, int date, int editDate, int expireDate, int memberLimit, int memberCount, boolean isPrimary, boolean isRevoked)Contains a chat invite link.- Parameters:
inviteLink
- String Chat invite link.creatorUserId
- int User identifier of an administrator created the link.date
- int Point in time (Unix timestamp) when the link was created.editDate
- int Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.expireDate
- int Point in time (Unix timestamp) when the link will expire; 0 if never.memberLimit
- int Maximum number of members, which can join the chat using the link simultaneously; 0 if not limited.memberCount
- int Number of chat members, which joined the chat using the link.isPrimary
- boolean True, if the link is primary. Primary invite link can't have expire date or usage limit. There is exactly one primary invite link for each administrator with canInviteUsers right at a given time.isRevoked
- boolean True, if the link was revoked.
-
ChatInviteLink
- 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()
-