using System.Text.Json.Serialization; namespace AS1024.GeoFeed.Models { public class NetboxData { public List? 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 { /// /// Represents the city associated with the IP address. This field is optional. /// public string? GeolocCity { get; set; } /// /// Represents the country associated with the IP address. This field is optional and expected to be a selection field in NetBox. /// public string? GeolocCountry { get; set; } /// /// Indicates whether geolocation data is available for the IP address. This field is required. /// public bool? GeolocHasLocation { get; set; } /// /// Represents the region or state associated with the IP address. This field is optional and expected to be a selection field in NetBox. /// public string? GeolocRegion { get; set; } /// /// Represents the postal code associated with the IP address. This field is optional. /// public string? GeolocPostalCode { get; set; } } /// /// This class represents the IP GeoFeed Entry /// public class IPGeoFeed : CustomFields { /// /// Represents the IP Prefix for the associated GeoFeed entry /// public string? Prefix { get; set; } } }