Package sk.iway.iwcm.admin.layout
Record Class UserMenuRestController.Status
java.lang.Object
java.lang.Record
sk.iway.iwcm.admin.layout.UserMenuRestController.Status
- Enclosing class:
- UserMenuRestController
public static record UserMenuRestController.Status(int sessionCount, boolean twoFactorEnabled, List<UserMenuRestController.LoginNotice> newLogins)
extends Record
Account summary containing only display data for outstanding login notices.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(int sessionCount, boolean twoFactorEnabled, List<UserMenuRestController.LoginNotice> newLogins) Creates an instance of aStatusrecord 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.Returns the value of thenewLoginsrecord component.intReturns the value of thesessionCountrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetwoFactorEnabledrecord component.
-
Constructor Details
-
Status
public Status(int sessionCount, boolean twoFactorEnabled, List<UserMenuRestController.LoginNotice> newLogins) Creates an instance of aStatusrecord class.- Parameters:
sessionCount- the value for thesessionCountrecord componenttwoFactorEnabled- the value for thetwoFactorEnabledrecord componentnewLogins- the value for thenewLoginsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sessionCount
public int sessionCount()Returns the value of thesessionCountrecord component.- Returns:
- the value of the
sessionCountrecord component
-
twoFactorEnabled
public boolean twoFactorEnabled()Returns the value of thetwoFactorEnabledrecord component.- Returns:
- the value of the
twoFactorEnabledrecord component
-
newLogins
Returns the value of thenewLoginsrecord component.- Returns:
- the value of the
newLoginsrecord component
-