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 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 a AppDto record class.
      Parameters:
      route - the value for the route record component
      variant - the value for the variant record component
      icon - the value for the icon record component
      logo - the value for the logo record component
      title - the value for the title record component
      subtitle - the value for the subtitle record component
      menu - the value for the menu record component
      totalMenuOptions - the value for the totalMenuOptions record component
      homeRoute - the value for the homeRoute record component
      appServerSideType - the value for the appServerSideType record component
      loginUrl - the value for the loginUrl record component
      welcomeMessage - the value for the welcomeMessage record component
      logoutUrl - the value for the logoutUrl record component
      apps - the value for the apps record component
      drawerClosed - the value for the drawerClosed record component
      style - the value for the style record component
      cssClasses - the value for the cssClasses record component
      home - the value for the home record component
  • Method Details

    • variant

      public AppVariantDto variant()
      Returns the value of the variant record component.
      Returns:
      the value of the variant record component
    • apps

      public List<AppDescriptorDto> apps()
      Returns the value of the apps record component.
      Returns:
      the value of the apps record component
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • route

      public String route()
      Returns the value of the route record component.
      Returns:
      the value of the route record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • logo

      public String logo()
      Returns the value of the logo record component.
      Returns:
      the value of the logo record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • subtitle

      public String subtitle()
      Returns the value of the subtitle record component.
      Returns:
      the value of the subtitle record component
    • totalMenuOptions

      public int totalMenuOptions()
      Returns the value of the totalMenuOptions record component.
      Returns:
      the value of the totalMenuOptions record component
    • homeRoute

      public String homeRoute()
      Returns the value of the homeRoute record component.
      Returns:
      the value of the homeRoute record component
    • appServerSideType

      public String appServerSideType()
      Returns the value of the appServerSideType record component.
      Returns:
      the value of the appServerSideType record component
    • loginUrl

      public String loginUrl()
      Returns the value of the loginUrl record component.
      Returns:
      the value of the loginUrl record component
    • welcomeMessage

      public String welcomeMessage()
      Returns the value of the welcomeMessage record component.
      Returns:
      the value of the welcomeMessage record component
    • logoutUrl

      public String logoutUrl()
      Returns the value of the logoutUrl record component.
      Returns:
      the value of the logoutUrl record component
    • drawerClosed

      public boolean drawerClosed()
      Returns the value of the drawerClosed record component.
      Returns:
      the value of the drawerClosed record component
    • style

      public String style()
      Returns the value of the style record component.
      Returns:
      the value of the style record component
    • cssClasses

      public String cssClasses()
      Returns the value of the cssClasses record component.
      Returns:
      the value of the cssClasses record component
    • home

      public ComponentDto home()
      Returns the value of the home record component.
      Returns:
      the value of the home record component