Record Class LoginUrl
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.LoginUrl
- All Implemented Interfaces:
Serializable,ApiResult
public record LoginUrl(@NotNull String url, @Nullable String forwardText, @Nullable String botUsername, boolean requestWriteAccess)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thebotUsernamerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of theforwardTextrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of therequestWriteAccessrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Stringurl()Returns the value of theurlrecord component.
-
Constructor Details
-
LoginUrl
public LoginUrl(@NotNull @NotNull String url, @Nullable @Nullable String forwardText, @Nullable @Nullable String botUsername, 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
public boolean requestWriteAccess()Returns the value of therequestWriteAccessrecord component.- Returns:
- the value of the
requestWriteAccessrecord component
-