Record Class ChatInviteLink
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatInviteLink
- All Implemented Interfaces:
Serializable,ApiResult
public record ChatInviteLink(String inviteLink, User creator, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked, @Nullable String name, @Nullable Date expireDate, @org.jetbrains.annotations.Range(from=1L, to=99999L) int memberLimit, int pendingJoinRequestCount, int subscriptionPeriod, int subscriptionPrice)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChatInviteLink(String inviteLink, User creator, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked, @Nullable String name, @Nullable Date expireDate, @org.jetbrains.annotations.Range(from=1L, to=99999L) int memberLimit, int pendingJoinRequestCount, int subscriptionPeriod, int subscriptionPrice) Creates an instance of aChatInviteLinkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecreatesJoinRequestrecord component.creator()Returns the value of thecreatorrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable DateReturns the value of theexpireDaterecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinviteLinkrecord component.booleanReturns the value of theisPrimaryrecord component.booleanReturns the value of theisRevokedrecord component.@org.jetbrains.annotations.Range(from=1L, to=99999L) intReturns the value of thememberLimitrecord component.@Nullable Stringname()Returns the value of thenamerecord component.intReturns the value of thependingJoinRequestCountrecord component.intReturns the value of thesubscriptionPeriodrecord component.intReturns the value of thesubscriptionPricerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatInviteLink
public ChatInviteLink(String inviteLink, User creator, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked, @Nullable @Nullable String name, @Nullable @Nullable Date expireDate, @org.jetbrains.annotations.Range(from=1L, to=99999L) int memberLimit, int pendingJoinRequestCount, int subscriptionPeriod, int subscriptionPrice) Creates an instance of aChatInviteLinkrecord class.- Parameters:
inviteLink- the value for theinviteLinkrecord componentcreator- the value for thecreatorrecord componentcreatesJoinRequest- the value for thecreatesJoinRequestrecord componentisPrimary- the value for theisPrimaryrecord componentisRevoked- the value for theisRevokedrecord componentname- the value for thenamerecord componentexpireDate- the value for theexpireDaterecord componentmemberLimit- the value for thememberLimitrecord componentpendingJoinRequestCount- the value for thependingJoinRequestCountrecord componentsubscriptionPeriod- the value for thesubscriptionPeriodrecord componentsubscriptionPrice- the value for thesubscriptionPricerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
inviteLink
Returns the value of theinviteLinkrecord component.- Returns:
- the value of the
inviteLinkrecord component
-
creator
Returns the value of thecreatorrecord component.- Returns:
- the value of the
creatorrecord component
-
createsJoinRequest
public boolean createsJoinRequest()Returns the value of thecreatesJoinRequestrecord component.- Returns:
- the value of the
createsJoinRequestrecord component
-
isPrimary
public boolean isPrimary()Returns the value of theisPrimaryrecord component.- Returns:
- the value of the
isPrimaryrecord component
-
isRevoked
public boolean isRevoked()Returns the value of theisRevokedrecord component.- Returns:
- the value of the
isRevokedrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
expireDate
Returns the value of theexpireDaterecord component.- Returns:
- the value of the
expireDaterecord component
-
memberLimit
public @org.jetbrains.annotations.Range(from=1L, to=99999L) int memberLimit()Returns the value of thememberLimitrecord component.- Returns:
- the value of the
memberLimitrecord component
-
pendingJoinRequestCount
public int pendingJoinRequestCount()Returns the value of thependingJoinRequestCountrecord component.- Returns:
- the value of the
pendingJoinRequestCountrecord component
-
subscriptionPeriod
public int subscriptionPeriod()Returns the value of thesubscriptionPeriodrecord component.- Returns:
- the value of the
subscriptionPeriodrecord component
-
subscriptionPrice
public int subscriptionPrice()Returns the value of thesubscriptionPricerecord component.- Returns:
- the value of the
subscriptionPricerecord component
-