Package com.nnamo.models
Class TripUpdateModel
java.lang.Object
com.nnamo.models.TripUpdateModel
Represents a delay update for a trip, including route, creation time, and
delay value.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor required by OrmLite.TripUpdateModel
(RouteModel route, LocalDateTime createdAt, int delay) Constructs a TripUpdateModel with the specified route, creation time, and delay. -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp.Gets the creation timestamp (duplicate accessor).int
getDelay()
Gets the delay value in seconds.
-
Constructor Details
-
TripUpdateModel
public TripUpdateModel()Empty constructor required by OrmLite. -
TripUpdateModel
Constructs a TripUpdateModel with the specified route, creation time, and delay.- Parameters:
route
- the route associated with the updatecreatedAt
- the creation time as LocalDateTimedelay
- the delay value in seconds
-
-
Method Details
-
getCreatedAt
Gets the creation timestamp.- Returns:
- the creation date
-
getCreatedAtDate
Gets the creation timestamp (duplicate accessor).- Returns:
- the creation date
-
getDelay
public int getDelay()Gets the delay value in seconds.- Returns:
- the delay
-