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