C# Класс HighscoresDemo

Наследование: MonoBehaviour, ITableViewDataSource
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ClearScore() публичный Метод

Reset UI to insert new score
public ClearScore ( ) : void
Результат void

Delete() публичный Метод

public Delete ( ) : void
Результат void

GenerateScores() публичный Метод

public GenerateScores ( ) : void
Результат void

GetAllHighscores() публичный Метод

public GetAllHighscores ( ) : void
Результат void

GetCellForRowInTableView() публичный Метод

public GetCellForRowInTableView ( TableView tableView, int row ) : TableViewCell
tableView TableView
row int
Результат Tacticsoft.TableViewCell

GetHeightForRowInTableView() публичный Метод

public GetHeightForRowInTableView ( TableView tableView, int row ) : float
tableView TableView
row int
Результат float

GetNumberOfRowsForTableView() публичный Метод

public GetNumberOfRowsForTableView ( TableView tableView ) : int
tableView TableView
Результат int

GetTopHighscores() публичный Метод

public GetTopHighscores ( ) : void
Результат void

GetUsernameHighscore() публичный Метод

public GetUsernameHighscore ( ) : void
Результат void

GoNextScene() публичный Метод

Handler to go to next scene
public GoNextScene ( ) : void
Результат void

Hello() публичный Метод

This demo 'hello' custom api just gets a response message eg. '{"message":"Hello World!"}'
public Hello ( ) : void
Результат void

Insert() публичный Метод

public Insert ( ) : void
Результат void

Login() публичный Метод

public Login ( ) : void
Результат void

Lookup() публичный Метод

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
Результат void

OnSelectedRow() публичный Метод

Handler to get selected row item
public OnSelectedRow ( Button button ) : void
button Button
Результат void

Read() публичный Метод

public Read ( ) : void
Результат void

TextChanged() публичный Метод

Handler for text changed event to update view state
public TextChanged ( ) : void
Результат void

UpdateScore() публичный Метод

public UpdateScore ( ) : void
Результат void