object GymHelper
Gym Helper Class Object
For sg.edu.ntu.scse.cz2006.gymbuddies.util in Gym Buddies!
Author
Kenneth Soh
Since
2019-10-01
GYM_COLLECTION |
A constant for the gym collection in Firebase Firestore DB const val GYM_COLLECTION: String |
GYM_REVIEWS_COLLECTION |
A constant for the gym review collection in Firebase Firestore DB const val GYM_REVIEWS_COLLECTION: String |
GYM_USERS_COLLECTION |
A constant for the gym user collection in Firebase Firestore DB const val GYM_USERS_COLLECTION: String |
gymList |
An internal property that stores parsed gym lists so that we do not need to parse it again var gymList: GymList? |
generateAddress |
Generates the gym address based on the gym properties prop that you have passed in fun generateAddress(prop: GymProperties): String |
getGym |
Get gym object if available from the application fun getGym(context: Context, gymId: String): GymShell? |
getGymList |
Gets the list of gym objects from the JSON file in the application fun getGymList(context: Context): GymList? |