Class TripUpdateModel

java.lang.Object
com.nnamo.models.TripUpdateModel

public class TripUpdateModel extends Object
Represents a delay update for a trip, including route, creation time, and delay value.
  • Constructor Details

    • TripUpdateModel

      public TripUpdateModel()
      Empty constructor required by OrmLite.
    • TripUpdateModel

      public TripUpdateModel(RouteModel route, LocalDateTime createdAt, int delay)
      Constructs a TripUpdateModel with the specified route, creation time, and delay.
      Parameters:
      route - the route associated with the update
      createdAt - the creation time as LocalDateTime
      delay - the delay value in seconds
  • Method Details

    • getCreatedAt

      public Date getCreatedAt()
      Gets the creation timestamp.
      Returns:
      the creation date
    • getCreatedAtDate

      public 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