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 ClassesNested classes/interfaces inherited from interface 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 MenuButtonWebApp.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
@NotNull public static @NotNull MenuButtonWebApp.Builder ofBuilder(String text, WebAppInfo webAppInfo) -
type
- Specified by:
typein interfaceMenuButton
-
toBuilder
-
toString
-
hashCode
-
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
-