GeoFeed/AS1024.GeoFeed/Models/GeoFeed.cs

31 lines
789 B
C#

using System.Text.Json.Serialization;
namespace AS1024.GeoFeed.Models
{
public class NetboxData
{
public List<Result>? Results { get; set; }
public string? Next { get; set; }
public string? Previous { get; set; }
}
public class Result
{
public string? Prefix { get; set; }
public CustomFields? CustomFields { get; set; }
}
public class CustomFields
{
public string? GeolocCity { get; set; }
public string? GeolocCountry { get; set; }
public bool? GeolocHasLocation { get; set; }
public string? GeolocRegion { get; set; }
public string? GeolocPostalCode { get; set; }
}
public class IPGeoFeed : CustomFields {
public string? Prefix { get; set; }
}
}