C# Class HighscoresDemo

Inheritance: MonoBehaviour, ITableViewDataSource
Datei anzeigen Open project: Unity3dAzure/AppServicesDemo

Public Methods

Method Description
ClearScore ( ) : void

Reset UI to insert new score

Delete ( ) : void
GenerateScores ( ) : void
GetAllHighscores ( ) : void
GetCellForRowInTableView ( TableView tableView, int row ) : TableViewCell
GetHeightForRowInTableView ( TableView tableView, int row ) : float
GetNumberOfRowsForTableView ( TableView tableView ) : int
GetTopHighscores ( ) : void
GetUsernameHighscore ( ) : void
GoNextScene ( ) : void

Handler to go to next scene

Hello ( ) : void

This demo 'hello' custom api just gets a response message eg. '{"message":"Hello World!"}'

Insert ( ) : void
Login ( ) : void
Lookup ( ) : void

This is an example showing how to get an item using it's id. For example if $select columns are specified and the returned data is limited then this can be used to get all the details by using the items's id.

OnSelectedRow ( Button button ) : void

Handler to get selected row item

Read ( ) : void
TextChanged ( ) : void

Handler for text changed event to update view state

UpdateScore ( ) : void

Private Methods

Method Description
DisplayScore ( Highscore, highscore ) : void

Update UI with data model

GetPageHighscores ( ) : void
GetScore ( ) : Highscore,

Create data model from UI

OnCustomApiCompleted ( IRestResponse response ) : void
OnDeleteCompleted ( IRestResponse response ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnInsertCompleted ( IRestResponse response ) : void
OnLoginCompleted ( IRestResponse response ) : void
OnLookupCompleted ( IRestResponse response ) : void
OnReadCompleted ( IRestResponse response ) : void
OnReadNestedResultsCompleted ( IRestResponse response ) : void
OnScrollValueChanged ( Vector2 newScrollValue ) : void
OnUpdateScoreCompleted ( IRestResponse response ) : void
Query ( CustomQuery query ) : void
SetInteractableScrollbars ( bool isInteractable ) : void
Start ( ) : void
Update ( ) : void
UpdateText ( string gameObjectName, bool isValid = true ) : void

Change text color to highlight errors

UpdateUI ( ) : void

Method to manage UI view state

Validate ( Highscore, highscore ) : bool

Validate data before sending

Method Details

ClearScore() public method

Reset UI to insert new score
public ClearScore ( ) : void
return void

Delete() public method

public Delete ( ) : void
return void

GenerateScores() public method

public GenerateScores ( ) : void
return void

GetAllHighscores() public method

public GetAllHighscores ( ) : void
return void

GetCellForRowInTableView() public method

public GetCellForRowInTableView ( TableView tableView, int row ) : TableViewCell
tableView TableView
row int
return Tacticsoft.TableViewCell

GetHeightForRowInTableView() public method

public GetHeightForRowInTableView ( TableView tableView, int row ) : float
tableView TableView
row int
return float

GetNumberOfRowsForTableView() public method

public GetNumberOfRowsForTableView ( TableView tableView ) : int
tableView TableView
return int

GetTopHighscores() public method

public GetTopHighscores ( ) : void
return void

GetUsernameHighscore() public method

public GetUsernameHighscore ( ) : void
return void

GoNextScene() public method

Handler to go to next scene
public GoNextScene ( ) : void
return void

Hello() public method

This demo 'hello' custom api just gets a response message eg. '{"message":"Hello World!"}'
public Hello ( ) : void
return void

Insert() public method

public Insert ( ) : void
return void

Login() public method

public Login ( ) : void
return void

Lookup() public method

This is an example showing how to get an item using it's id. For example if $select columns are specified and the returned data is limited then this can be used to get all the details by using the items's id.
public Lookup ( ) : void
return void

OnSelectedRow() public method

Handler to get selected row item
public OnSelectedRow ( Button button ) : void
button Button
return void

Read() public method

public Read ( ) : void
return void

TextChanged() public method

Handler for text changed event to update view state
public TextChanged ( ) : void
return void

UpdateScore() public method

public UpdateScore ( ) : void
return void