Package dev.tobee.telegram.model.message
Record Class LoginUrl
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.message.LoginUrl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebotUsernamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforwardTextrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therequestWriteAccessrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
LoginUrl
public LoginUrl(String url, Optional<String> forwardText, Optional<String> botUsername, Optional<Boolean> requestWriteAccess) Creates an instance of aLoginUrlrecord class.- Parameters:
url- the value for theurlrecord componentforwardText- the value for theforwardTextrecord componentbotUsername- the value for thebotUsernamerecord componentrequestWriteAccess- the value for therequestWriteAccessrecord 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). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
forwardText
Returns the value of theforwardTextrecord component.- Returns:
- the value of the
forwardTextrecord component
-
botUsername
Returns the value of thebotUsernamerecord component.- Returns:
- the value of the
botUsernamerecord component
-
requestWriteAccess
Returns the value of therequestWriteAccessrecord component.- Returns:
- the value of the
requestWriteAccessrecord component
-