Record Class ChatJoinRequest
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatJoinRequest
- All Implemented Interfaces:
Serializable,ApiResult
public record ChatJoinRequest(Chat chat, User from, Long userChatId, Date date, @Nullable String bio, @Nullable ChatInviteLink inviteLink)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChatJoinRequest(Chat chat, User from, Long userChatId, Date date, @Nullable String bio, @Nullable ChatInviteLink inviteLink) Creates an instance of aChatJoinRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringbio()Returns the value of thebiorecord component.chat()Returns the value of thechatrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.@Nullable ChatInviteLinkReturns the value of theinviteLinkrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserChatIdrecord component.
-
Constructor Details
-
ChatJoinRequest
public ChatJoinRequest(Chat chat, User from, Long userChatId, Date date, @Nullable @Nullable String bio, @Nullable @Nullable ChatInviteLink inviteLink) Creates an instance of aChatJoinRequestrecord class.- Parameters:
chat- the value for thechatrecord componentfrom- the value for thefromrecord componentuserChatId- the value for theuserChatIdrecord componentdate- the value for thedaterecord componentbio- the value for thebiorecord componentinviteLink- the value for theinviteLinkrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
chat
Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
userChatId
Returns the value of theuserChatIdrecord component.- Returns:
- the value of the
userChatIdrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
bio
Returns the value of thebiorecord component.- Returns:
- the value of the
biorecord component
-
inviteLink
Returns the value of theinviteLinkrecord component.- Returns:
- the value of the
inviteLinkrecord component
-