DiscoverTenerife
Public Member Functions | Private Member Functions | Private Attributes | List of all members
trashButton Class Reference

Class that handles the delete button of the stored places panel element. More...

Inheritance diagram for trashButton:

Public Member Functions

void OnClick ()
 This method should be called when the delete button is clicked by the user. If the user has not uploaded visits on this stored place, it notify the user to make it aware of what is he doing. If the user hasnt any visit for upload, it just call deleteStoredPlace method of StoredPlacesController class. More...
 

Private Member Functions

void Start ()
 This method is called on the first frame. It initialices the shouldAdviseUser_ property as true. More...
 

Private Attributes

GameObject toastMessageObject_
 GameObject with the reference to the toastmessage where the messages will be shown. More...
 
GameObject numberOfNotUploadedVisits_
 GameObject that will shown the number of not uploaded visits of the stored place. More...
 
bool shouldAdviseUser_
 True if it has to notify the user before deleting the stored place. False if it has not to notify the user. More...
 

Detailed Description

Class that handles the delete button of the stored places panel element.

Member Function Documentation

◆ OnClick()

void trashButton.OnClick ( )

This method should be called when the delete button is clicked by the user. If the user has not uploaded visits on this stored place, it notify the user to make it aware of what is he doing. If the user hasnt any visit for upload, it just call deleteStoredPlace method of StoredPlacesController class.

◆ Start()

void trashButton.Start ( )
private

This method is called on the first frame. It initialices the shouldAdviseUser_ property as true.

Member Data Documentation

◆ numberOfNotUploadedVisits_

GameObject trashButton.numberOfNotUploadedVisits_
private

GameObject that will shown the number of not uploaded visits of the stored place.

◆ shouldAdviseUser_

bool trashButton.shouldAdviseUser_
private

True if it has to notify the user before deleting the stored place. False if it has not to notify the user.

◆ toastMessageObject_

GameObject trashButton.toastMessageObject_
private

GameObject with the reference to the toastmessage where the messages will be shown.


The documentation for this class was generated from the following file: