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

GymRatingStats

data class GymRatingStats

Statistics for Gym Ratings. For use by recycler adapters in recyclerviews for sg.edu.ntu.scse.cz2006.gymbuddies.datastruct in Gym Buddies!

Author
Kenneth Soh

Since
2019-10-14

Constructors

<init>

Returns an object signifying the gym rating statistics for a particular gym

GymRatingStats(averageRating: Float = 0.0f, count: Int = 0, totalRating: Float = 0.0f)

Properties

averageRating

Float Average Rating of Gym

val averageRating: Float

count

Int Number of Ratings for the Gym

val count: Int

totalRating

Float Total Rating Score for gym (tabulated by summing up all the ratings in the gym)

val totalRating: Float