C# Class InventoryDemo

Inheritance: MonoBehaviour, ITableViewDataSource
Mostra file Open project: Unity3dAzure/AppServicesDemo

Public Methods

Method Description
GetCellForRowInTableView ( TableView tableView, int row ) : TableViewCell
GetHeightForRowInTableView ( TableView tableView, int row ) : float
GetNumberOfRowsForTableView ( TableView tableView ) : int
GoNextScene ( ) : void

Handler to go to next scene

Load ( ) : void
LoadImage ( string filename ) : Sprite
Login ( ) : void
Save ( ) : void
TextChanged ( ) : void

Handler for text changed event to update view state

Private Methods

Method Description
InsertInventory ( ) : void
OnInsertCompleted ( IRestResponse response ) : void
OnLoadCompleted ( IRestResponse response ) : void
OnLoginCompleted ( IRestResponse response ) : void
OnUpdateCompleted ( IRestResponse response ) : void
RecalculateInventoryItems ( ) : void

Update inventory using input values

ReloadTableData ( ) : void

Reloads table data

Start ( ) : void
Update ( ) : void
UpdateInventory ( ) : void
UpdateUI ( ) : void

Method to manage UI view state

Method Details

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

GoNextScene() public method

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

Load() public method

public Load ( ) : void
return void

LoadImage() public method

public LoadImage ( string filename ) : Sprite
filename string
return Sprite

Login() public method

public Login ( ) : void
return void

Save() public method

public Save ( ) : void
return void

TextChanged() public method

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