public FirePoint AddAppFirepoint(GeoPoint geoPoint, string ip, string account) { var userData = new AppFirePoint() { Ip = ip, Date = DateTime.Now, Title = $"User", NearestCity = FindNearestCity.From(geoPoint), Point = geoPoint }; userData.Title = $"{userData.GetCityName ()} (U)"; userData.Description = ""; firePoints.Add(userData); return(userData); }
public FirePoint AddTwitterFirepoint(GeoPoint geoPoint, string ip, string account, string data) { var args = new FindNearestCity(geoPoint); var nearestCityResponse = WebApiHelper.GetNasaWebApiResponse <FindNearestCityResponse> (args); var userData = new TwitterFirePoint() { Ip = ip, NearestCity = FindNearestCity.From(geoPoint), Point = geoPoint, Account = account, Date = DateTime.Now, ParsedData = data }; userData.Title = $"{userData.GetCityName ()} (T)"; userData.Description = ""; firePoints.Add(userData); return(userData); }