Package io.mateu.dtos
Record Class AppDto
java.lang.Object
java.lang.Record
io.mateu.dtos.AppDto
- All Implemented Interfaces:
ComponentMetadataDto
public record AppDto(String route, AppVariantDto variant, String icon, String logo, String title, String subtitle, List<MenuOptionDto> menu, int totalMenuOptions, String homeRoute, String appServerSideType, String loginUrl, String welcomeMessage, String logoutUrl, List<AppDescriptorDto> apps, boolean drawerClosed, String style, String cssClasses, ComponentDto home)
extends Record
implements ComponentMetadataDto
-
Constructor Summary
ConstructorsConstructorDescriptionAppDto(String route, AppVariantDto variant, String icon, String logo, String title, String subtitle, List<MenuOptionDto> menu, int totalMenuOptions, String homeRoute, String appServerSideType, String loginUrl, String welcomeMessage, String logoutUrl, List<AppDescriptorDto> apps, boolean drawerClosed, String style, String cssClasses, ComponentDto home) Creates an instance of aAppDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionapps()Returns the value of theappsrecord component.Returns the value of theappServerSideTyperecord component.Returns the value of thecssClassesrecord component.booleanReturns the value of thedrawerClosedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.home()Returns the value of thehomerecord component.Returns the value of thehomeRouterecord component.icon()Returns the value of theiconrecord component.loginUrl()Returns the value of theloginUrlrecord component.logo()Returns the value of thelogorecord component.Returns the value of thelogoutUrlrecord component.menu()Returns the value of themenurecord component.route()Returns the value of therouterecord component.style()Returns the value of thestylerecord component.subtitle()Returns the value of thesubtitlerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalMenuOptionsrecord component.variant()Returns the value of thevariantrecord component.Returns the value of thewelcomeMessagerecord component.
-
Constructor Details
-
AppDto
public AppDto(String route, AppVariantDto variant, String icon, String logo, String title, String subtitle, List<MenuOptionDto> menu, int totalMenuOptions, String homeRoute, String appServerSideType, String loginUrl, String welcomeMessage, String logoutUrl, List<AppDescriptorDto> apps, boolean drawerClosed, String style, String cssClasses, ComponentDto home) Creates an instance of aAppDtorecord class.- Parameters:
route- the value for therouterecord componentvariant- the value for thevariantrecord componenticon- the value for theiconrecord componentlogo- the value for thelogorecord componenttitle- the value for thetitlerecord componentsubtitle- the value for thesubtitlerecord componentmenu- the value for themenurecord componenttotalMenuOptions- the value for thetotalMenuOptionsrecord componenthomeRoute- the value for thehomeRouterecord componentappServerSideType- the value for theappServerSideTyperecord componentloginUrl- the value for theloginUrlrecord componentwelcomeMessage- the value for thewelcomeMessagerecord componentlogoutUrl- the value for thelogoutUrlrecord componentapps- the value for theappsrecord componentdrawerClosed- the value for thedrawerClosedrecord componentstyle- the value for thestylerecord componentcssClasses- the value for thecssClassesrecord componenthome- the value for thehomerecord component
-
-
Method Details
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
apps
Returns the value of theappsrecord component.- Returns:
- the value of the
appsrecord component
-
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 '=='. -
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
logo
Returns the value of thelogorecord component.- Returns:
- the value of the
logorecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
totalMenuOptions
public int totalMenuOptions()Returns the value of thetotalMenuOptionsrecord component.- Returns:
- the value of the
totalMenuOptionsrecord component
-
homeRoute
Returns the value of thehomeRouterecord component.- Returns:
- the value of the
homeRouterecord component
-
appServerSideType
Returns the value of theappServerSideTyperecord component.- Returns:
- the value of the
appServerSideTyperecord component
-
loginUrl
Returns the value of theloginUrlrecord component.- Returns:
- the value of the
loginUrlrecord component
-
welcomeMessage
Returns the value of thewelcomeMessagerecord component.- Returns:
- the value of the
welcomeMessagerecord component
-
logoutUrl
Returns the value of thelogoutUrlrecord component.- Returns:
- the value of the
logoutUrlrecord component
-
drawerClosed
public boolean drawerClosed()Returns the value of thedrawerClosedrecord component.- Returns:
- the value of the
drawerClosedrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
cssClasses
Returns the value of thecssClassesrecord component.- Returns:
- the value of the
cssClassesrecord component
-
home
Returns the value of thehomerecord component.- Returns:
- the value of the
homerecord component
-