C# Class EasyBike.Models.ContractService

Inheritance: IContractService
Show file Open project: ThePublicBikeGang/EasyBike Class Usage Examples

Public Methods

Method Description
AddContractAsync ( Contract contract ) : Task
AddStationToRefreshingPool ( Station station ) : void
ContractService ( ILocalisationService localisationService, IStorageService storageService ) : EasyBike.Models.Storage
GetContractsAsync ( ) : Task>
GetCountries ( ) : List
GetStations ( ) : List
RemoveAllContractsAsync ( ) : Task
RemoveContractAsync ( Contract contract ) : Task
RemoveStationFromRefreshingPool ( Station station ) : void

Private Methods

Method Description
AggregateStations ( Contract contract ) : void
StartRefreshAsync ( ) : void
StartRefreshStationsAsync ( ) : void

Method Details

AddContractAsync() public method

public AddContractAsync ( Contract contract ) : Task
contract Contract
return Task

AddStationToRefreshingPool() public method

public AddStationToRefreshingPool ( Station station ) : void
station Station
return void

ContractService() public method

public ContractService ( ILocalisationService localisationService, IStorageService storageService ) : EasyBike.Models.Storage
localisationService ILocalisationService
storageService IStorageService
return EasyBike.Models.Storage

GetContractsAsync() public method

public GetContractsAsync ( ) : Task>
return Task>

GetCountries() public method

public GetCountries ( ) : List
return List

GetStations() public method

public GetStations ( ) : List
return List

RemoveAllContractsAsync() public method

public RemoveAllContractsAsync ( ) : Task
return Task

RemoveContractAsync() public method

public RemoveContractAsync ( Contract contract ) : Task
contract Contract
return Task

RemoveStationFromRefreshingPool() public method

public RemoveStationFromRefreshingPool ( Station station ) : void
station Station
return void