C# 클래스 BikeInCity.Services.CityService

상속: ICityService
파일 보기 프로젝트 열기: hoonzis/bikeincity

공개 프로퍼티들

프로퍼티 타입 설명
_repository IRepository

공개 메소드들

메소드 설명
ClearDB ( ) : void
FilterCountry ( String country ) : String
ReinsertCitiesToDB ( String nextBikeURL, String cityXMLFile ) : void
SaveCity ( City city ) : void
ToDouble ( String value ) : double
UpdateCityStations ( City city ) : void

비공개 메소드들

메소드 설명
CityService ( IRepository repository ) : System
CreateIfDoesNotExists ( double lat, double lng, String name, String country ) : void
NewCity ( string countryName, double lat, double lng, string name ) : City

메소드 상세

ClearDB() 공개 메소드

public ClearDB ( ) : void
리턴 void

FilterCountry() 공개 정적인 메소드

public static FilterCountry ( String country ) : String
country String
리턴 String

ReinsertCitiesToDB() 공개 메소드

public ReinsertCitiesToDB ( String nextBikeURL, String cityXMLFile ) : void
nextBikeURL String
cityXMLFile String
리턴 void

SaveCity() 공개 메소드

public SaveCity ( City city ) : void
city BikeInCity.Model.City
리턴 void

ToDouble() 공개 정적인 메소드

public static ToDouble ( String value ) : double
value String
리턴 double

UpdateCityStations() 공개 메소드

public UpdateCityStations ( City city ) : void
city BikeInCity.Model.City
리턴 void

프로퍼티 상세

_repository 공개적으로 프로퍼티

public IRepository _repository
리턴 IRepository