Package vaultWeb.dtos.dashboard
Record Class UserDashboardDto
java.lang.Object
java.lang.Record
vaultWeb.dtos.dashboard.UserDashboardDto
public record UserDashboardDto(UserDashboardDto.ProfileSummary profile, List<UserDashboardDto.GroupSummary> groups, List<UserDashboardDto.PrivateChatSummary> privateChats, List<UserDashboardDto.PollSummary> polls, List<UserDashboardDto.MessagePreview> recentMessages)
extends Record
Aggregated payload returned to the frontend so a dashboard can render all user-centric data with
a single request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionUserDashboardDto(UserDashboardDto.ProfileSummary profile, List<UserDashboardDto.GroupSummary> groups, List<UserDashboardDto.PrivateChatSummary> privateChats, List<UserDashboardDto.PollSummary> polls, List<UserDashboardDto.MessagePreview> recentMessages) Creates an instance of aUserDashboardDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.polls()Returns the value of thepollsrecord component.Returns the value of theprivateChatsrecord component.profile()Returns the value of theprofilerecord component.Returns the value of therecentMessagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserDashboardDto
public UserDashboardDto(UserDashboardDto.ProfileSummary profile, List<UserDashboardDto.GroupSummary> groups, List<UserDashboardDto.PrivateChatSummary> privateChats, List<UserDashboardDto.PollSummary> polls, List<UserDashboardDto.MessagePreview> recentMessages) Creates an instance of aUserDashboardDtorecord class.- Parameters:
profile- the value for theprofilerecord componentgroups- the value for thegroupsrecord componentprivateChats- the value for theprivateChatsrecord componentpolls- the value for thepollsrecord componentrecentMessages- the value for therecentMessagesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
privateChats
Returns the value of theprivateChatsrecord component.- Returns:
- the value of the
privateChatsrecord component
-
polls
Returns the value of thepollsrecord component.- Returns:
- the value of the
pollsrecord component
-
recentMessages
Returns the value of therecentMessagesrecord component.- Returns:
- the value of the
recentMessagesrecord component
-