C# Class Foundation.Server.GameScoreService

Example strongly typed web api score service client
Inheritance: ServiceClientBase
Exibir arquivo Open project: NVentimiglia/Unity3d-Foundation

Public Properties

Property Type Description
Instance GameScoreService

Public Methods

Method Description
Get ( int take, int skip ) : UnityTask

Gets the high score list

Get ( int take, int skip, Action callback ) : void

Gets the high score list

Self ( ) : UnityTask

Returns your current score

Self ( Action callback ) : void

Returns your current score

Update ( GameScore entity ) : UnityTask

Posts the score to the server

Update ( GameScore entity, Action callback ) : void

Posts the score to the server

Private Methods

Method Description
GameScoreService ( ) : System

Method Details

Get() public method

Gets the high score list
public Get ( int take, int skip ) : UnityTask
take int
skip int
return UnityTask

Get() public method

Gets the high score list
public Get ( int take, int skip, Action callback ) : void
take int
skip int
callback Action
return void

Self() public method

Returns your current score
public Self ( ) : UnityTask
return UnityTask

Self() public method

Returns your current score
public Self ( Action callback ) : void
callback Action
return void

Update() public method

Posts the score to the server
public Update ( GameScore entity ) : UnityTask
entity Foundation.Server.Api.GameScore
return Foundation.Tasks.UnityTask

Update() public method

Posts the score to the server
public Update ( GameScore entity, Action callback ) : void
entity Foundation.Server.Api.GameScore
callback Action
return void

Property Details

Instance public_oe static_oe property

public static GameScoreService,Foundation.Server Instance
return GameScoreService