Package com.github.copilot.sdk.events
Record Class SessionResumeEvent.SessionResumeData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.events.SessionResumeEvent.SessionResumeData
- Enclosing class:
- SessionResumeEvent
public static record SessionResumeEvent.SessionResumeData(OffsetDateTime resumeTime, double eventCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSessionResumeData(OffsetDateTime resumeTime, double eventCount) Creates an instance of aSessionResumeDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theeventCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresumeTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionResumeData
Creates an instance of aSessionResumeDatarecord class.- Parameters:
resumeTime- the value for theresumeTimerecord componenteventCount- the value for theeventCountrecord 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 '=='. -
resumeTime
Returns the value of theresumeTimerecord component.- Returns:
- the value of the
resumeTimerecord component
-
eventCount
public double eventCount()Returns the value of theeventCountrecord component.- Returns:
- the value of the
eventCountrecord component
-