Package app.ductape.sdk.sessions
Record Class SessionsTypes.ListSessionsResult
java.lang.Object
java.lang.Record
app.ductape.sdk.sessions.SessionsTypes.ListSessionsResult
- Enclosing class:
- SessionsTypes
public static record SessionsTypes.ListSessionsResult(List<SessionsTypes.SessionInfo> sessions, long total, int page, int limit)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionListSessionsResult(List<SessionsTypes.SessionInfo> sessions, long total, int page, int limit) Creates an instance of aListSessionsResultrecord 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.intlimit()Returns the value of thelimitrecord component.intpage()Returns the value of thepagerecord component.sessions()Returns the value of thesessionsrecord component.final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
ListSessionsResult
public ListSessionsResult(List<SessionsTypes.SessionInfo> sessions, long total, int page, int limit) Creates an instance of aListSessionsResultrecord class.- Parameters:
sessions- the value for thesessionsrecord componenttotal- the value for thetotalrecord componentpage- the value for thepagerecord componentlimit- the value for thelimitrecord 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 '=='. -
sessions
Returns the value of thesessionsrecord component.- Returns:
- the value of the
sessionsrecord component
-
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-