app / sg.edu.ntu.scse.cz2006.gymbuddies.datastruct / FavGymObject

FavGymObject

data class FavGymObject

Data Structure to store the Favourited Gym Object for use by the RecyclerView favourites list For sg.edu.ntu.scse.cz2006.gymbuddies.datastruct in Gym Buddies!

Author
Kenneth Soh

Since
2019-10-02

Constructors

<init>

Creates a object for the Favourites List RecyclerView

FavGymObject(gym: GymShell, favCount: Int = 0, avgRating: Float = 0.0f, ratingCount: Int = 0)

Properties

avgRating

var avgRating: Float

favCount

Int The number of users who have favouited the gym object in gym

val favCount: Int

gym

GymShell Gym object

val gym: GymShell

ratingCount

var ratingCount: Int