Package com.nnamo.models
Class FavoriteStopModel
java.lang.Object
com.nnamo.models.FavoriteStopModel
Represents a user's favorite stop.
Used for storing the association between a user and a stop in the database.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor required by OrmLite.FavoriteStopModel
(UserModel user, StopModel stop) Constructs a FavoriteStopModel with the specified user and stop. -
Method Summary
-
Constructor Details
-
FavoriteStopModel
public FavoriteStopModel()Empty constructor required by OrmLite. -
FavoriteStopModel
Constructs a FavoriteStopModel with the specified user and stop.- Parameters:
user
- the user who favorites the stopstop
- the stop marked as favorite
-
-
Method Details
-
getId
public int getId()Gets the unique identifier of this favorite stop entry.- Returns:
- the id
-
getUser
Gets the user who marked the stop as favorite.- Returns:
- the user
-
getStop
Gets the stop marked as favorite.- Returns:
- the stop
-