Add project files.

This commit is contained in:
2024-01-04 20:39:36 -08:00
parent 6b91d168a3
commit 6fe03cfade
15 changed files with 463 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using AS1024.GeoFeed.Models;
using System.Text;
namespace AS1024.GeoFeed.GeoFeedBuilder
{
public static class GeoFeedTools
{
public static string ToGeoFeedCsv(this List<IPGeoFeed> geoFeeds)
{
StringBuilder csvContent = new();
foreach (var feed in geoFeeds)
{
csvContent.AppendLine($"{feed.Prefix},{feed.GeolocCountry},{feed.GeolocRegion},{feed.GeolocCity}");
}
return csvContent.ToString();
}
}
}