Package com.github.copilot.sdk.events
Record Class SessionHandoffEvent.SessionHandoffData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
- Enclosing class:
- SessionHandoffEvent
public static record SessionHandoffEvent.SessionHandoffData(OffsetDateTime handoffTime, String sourceType, SessionHandoffEvent.SessionHandoffData.Repository repository, String context, String summary, String remoteSessionId)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionSessionHandoffData(OffsetDateTime handoffTime, String sourceType, SessionHandoffEvent.SessionHandoffData.Repository repository, String context, String summary, String remoteSessionId) Creates an instance of aSessionHandoffDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandoffTimerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theremoteSessionIdrecord component.Returns the value of therepositoryrecord component.Returns the value of thesourceTyperecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionHandoffData
public SessionHandoffData(OffsetDateTime handoffTime, String sourceType, SessionHandoffEvent.SessionHandoffData.Repository repository, String context, String summary, String remoteSessionId) Creates an instance of aSessionHandoffDatarecord class.- Parameters:
handoffTime- the value for thehandoffTimerecord componentsourceType- the value for thesourceTyperecord componentrepository- the value for therepositoryrecord componentcontext- the value for thecontextrecord componentsummary- the value for thesummaryrecord componentremoteSessionId- the value for theremoteSessionIdrecord 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). -
handoffTime
Returns the value of thehandoffTimerecord component.- Returns:
- the value of the
handoffTimerecord component
-
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
remoteSessionId
Returns the value of theremoteSessionIdrecord component.- Returns:
- the value of the
remoteSessionIdrecord component
-