C# Class BikeInCity.Services.CityService

Inheritance: ICityService
显示文件 Open project: hoonzis/bikeincity

Public Properties

Property Type Description
_repository IRepository

Public Methods

Method Description
ClearDB ( ) : void
FilterCountry ( String country ) : String
ReinsertCitiesToDB ( String nextBikeURL, String cityXMLFile ) : void
SaveCity ( City city ) : void
ToDouble ( String value ) : double
UpdateCityStations ( City city ) : void

Private Methods

Method Description
CityService ( IRepository repository ) : System
CreateIfDoesNotExists ( double lat, double lng, String name, String country ) : void
NewCity ( string countryName, double lat, double lng, string name ) : City

Method Details

ClearDB() public method

public ClearDB ( ) : void
return void

FilterCountry() public static method

public static FilterCountry ( String country ) : String
country String
return String

ReinsertCitiesToDB() public method

public ReinsertCitiesToDB ( String nextBikeURL, String cityXMLFile ) : void
nextBikeURL String
cityXMLFile String
return void

SaveCity() public method

public SaveCity ( City city ) : void
city BikeInCity.Model.City
return void

ToDouble() public static method

public static ToDouble ( String value ) : double
value String
return double

UpdateCityStations() public method

public UpdateCityStations ( City city ) : void
city BikeInCity.Model.City
return void

Property Details

_repository public_oe property

public IRepository _repository
return IRepository