app / sg.edu.ntu.scse.cz2006.gymbuddies.ui.home / HomeFragment / setGymStatus

setGymStatus

private open fun setGymStatus(hasReview: Boolean, @Nullable 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 - Boolean: User currently has a review for the selected gym if true, false otherwise

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

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