Class MyProfileController
- java.lang.Object
-
- com.cmput301w23t09.qrhunter.profile.ProfileController
-
- com.cmput301w23t09.qrhunter.profile.MyProfileController
-
- All Implemented Interfaces:
DatabaseChangeListener
public class MyProfileController 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 MyProfileController(ProfileFragment fragment, GameController gameController)
This initializes the controller with its corresponding fragment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleContactButtonClick()
This handles the action to take when the contact info button is clicked.protected void
updateFollowDetails()
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
-
MyProfileController
public MyProfileController(ProfileFragment fragment, GameController gameController)
This initializes the controller with its corresponding fragment- Parameters:
fragment
- This is the fragment the controller managesgameController
- The game controller that controls the global view
-
-
Method Detail
-
updateFollowDetails
protected void updateFollowDetails()
Description copied from class:ProfileController
Updates the text and following/followers count of the follow related content in the view.- Specified by:
updateFollowDetails
in classProfileController
-
handleContactButtonClick
public void handleContactButtonClick()
Description copied from class:ProfileController
This 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:
handleContactButtonClick
in classProfileController
-
-