Class OtherProfileController
- java.lang.Object
-
- com.cmput301w23t09.qrhunter.profile.ProfileController
-
- com.cmput301w23t09.qrhunter.profile.OtherProfileController
-
- All Implemented Interfaces:
DatabaseChangeListener
public class OtherProfileController extends ProfileController
-
-
Field Summary
-
Fields inherited from class com.cmput301w23t09.qrhunter.profile.ProfileController
deviceUUID, followButton, followersText, followingText, followLoadingButton, fragment, gameController, orderSpinner, qrCodeAdapter, qrCodeList, qrCodes, topScore, totalCodes, totalPoints, unfollowButton
-
-
Constructor Summary
Constructors Constructor Description OtherProfileController(ProfileFragment fragment, GameController gameController, java.util.UUID deviceUUID)This initializes the controller with its corresponding fragment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleContactButtonClick()This handles the action to take when the contact info button is clicked.voidhandleFollowButtonClick()protected voidupdateFollowDetails()Updates the text and following/followers count of the follow related content in the view.-
Methods inherited from class com.cmput301w23t09.qrhunter.profile.ProfileController
addUpdater, getTopScore, getTotalScore, handleQRSelect, handleSpinnerSelect, onChange, onRankingButtonClick, setupFollowDetails, setUpQRList, setUpUsernameAndPicture, showMsg
-
-
-
-
Constructor Detail
-
OtherProfileController
public OtherProfileController(ProfileFragment fragment, GameController gameController, java.util.UUID deviceUUID)
This initializes the controller with its corresponding fragment- Parameters:
fragment- This is the fragment the controller managesgameController- The game controller that controls the global viewdeviceUUID- Device UUID of the profile.
-
-
Method Detail
-
updateFollowDetails
protected void updateFollowDetails()
Description copied from class:ProfileControllerUpdates the text and following/followers count of the follow related content in the view.- Specified by:
updateFollowDetailsin classProfileController
-
handleContactButtonClick
public void handleContactButtonClick()
Description copied from class:ProfileControllerThis handles the action to take when the contact info button is clicked. Either displaying the contact information or rendering the edit details fragment.- Specified by:
handleContactButtonClickin classProfileController
-
handleFollowButtonClick
public void handleFollowButtonClick()
-
-