Class FavoriteStopModel

java.lang.Object
com.nnamo.models.FavoriteStopModel

public class FavoriteStopModel extends Object
Represents a user's favorite stop. Used for storing the association between a user and a stop in the database.
  • Constructor Details

    • FavoriteStopModel

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

      public FavoriteStopModel(UserModel user, StopModel stop)
      Constructs a FavoriteStopModel with the specified user and stop.
      Parameters:
      user - the user who favorites the stop
      stop - the stop marked as favorite
  • Method Details

    • getId

      public int getId()
      Gets the unique identifier of this favorite stop entry.
      Returns:
      the id
    • getUser

      public UserModel getUser()
      Gets the user who marked the stop as favorite.
      Returns:
      the user
    • getStop

      public StopModel getStop()
      Gets the stop marked as favorite.
      Returns:
      the stop