Record Class IntegrationResponse
java.lang.Object
java.lang.Record
com.nicholasalfonso.lato.dto.response.IntegrationResponse
- Record Components:
id- the integration database IDprovider- the LMS provider for this integrationicsUrl- the iCalendar feed URL being synchronizedlastSyncAt- timestamp of the most recent successful sync, if any
public record IntegrationResponse(Long id, Integration.LMSProvider provider, String icsUrl, Instant lastSyncAt)
extends Record
LMS integration metadata returned to API clients.
-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationResponse(Long id, Integration.LMSProvider provider, String icsUrl, Instant lastSyncAt) Creates an instance of aIntegrationResponserecord 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.icsUrl()Returns the value of theicsUrlrecord component.id()Returns the value of theidrecord component.Returns the value of thelastSyncAtrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IntegrationResponse
public IntegrationResponse(Long id, Integration.LMSProvider provider, String icsUrl, Instant lastSyncAt) Creates an instance of aIntegrationResponserecord class.- Parameters:
id- the value for theidrecord componentprovider- the value for theproviderrecord componenticsUrl- the value for theicsUrlrecord componentlastSyncAt- the value for thelastSyncAtrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
icsUrl
Returns the value of theicsUrlrecord component.- Returns:
- the value of the
icsUrlrecord component
-
lastSyncAt
Returns the value of thelastSyncAtrecord component.- Returns:
- the value of the
lastSyncAtrecord component
-