app / sg.edu.ntu.scse.cz2006.gymbuddies / CarparkAndSearchResultActivity / setGymStatus

setGymStatus

private fun setGymStatus(hasReview: Boolean, message: String?, rating: Float): Unit

Internal function to set the logged in user's gym review status This will determine if the user has a review for that particular gym or not. If there is, the view review layout is used, otherwise the create new review layout is used

Parameters

hasReview - User currently has a review for the selected gym if true, false otherwise

message - Any review message in the user's review of the gym, null for empty

rating - The rating for the gym given by the user. Will be 0 by default