Record Class MenuButtonWebApp
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.MenuButtonWebApp
- All Implemented Interfaces:
Serializable,MenuButton
public record MenuButtonWebApp(String text, WebAppInfo webAppInfo)
extends Record
implements MenuButton
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.teleight.teleightbots.api.objects.MenuButton
MenuButton.MenuButtonType -
Constructor Summary
ConstructorsConstructorDescriptionMenuButtonWebApp(String text, WebAppInfo webAppInfo) Creates an instance of aMenuButtonWebApprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @NotNull lombok.BuilderofBuilder(String text, WebAppInfo webAppInfo) text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thewebAppInforecord component.
-
Constructor Details
-
MenuButtonWebApp
Creates an instance of aMenuButtonWebApprecord class.- Parameters:
text- the value for thetextrecord componentwebAppInfo- the value for thewebAppInforecord component
-
-
Method Details
-
ofBuilder
-
type
- Specified by:
typein interfaceMenuButton
-
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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
webAppInfo
Returns the value of thewebAppInforecord component.- Returns:
- the value of the
webAppInforecord component
-