public override bool Equals(object obj) { PlaceModel pm = (PlaceModel)obj; if (this.ID == pm.ID && this.Name == pm.Name) { return(true); } return(false); }
public static PlaceModel[] GetDistricts(PlaceModel province, PlaceModel city) { return(GetPlaceList(string.Format("http://www.weather.com.cn/data/city3jdata/station/{0}{1}.html", province.ID, city.ID))); }
public static PlaceModel[] GetCitys(PlaceModel province) { return(GetPlaceList(string.Format("http://www.weather.com.cn/data/city3jdata/provshi/{0}.html", province.ID))); }