Add project files.
This commit is contained in:
35
AS1024.GeoFeed/Models/GeoFeed.cs
Normal file
35
AS1024.GeoFeed/Models/GeoFeed.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
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; }
|
||||
[JsonProperty("custom_fields")]
|
||||
public CustomFields? CustomFields { get; set; }
|
||||
}
|
||||
|
||||
public class CustomFields
|
||||
{
|
||||
[JsonProperty("geoloc_city")]
|
||||
public string? GeolocCity { get; set; }
|
||||
[JsonProperty("geoloc_country")]
|
||||
public string? GeolocCountry { get; set; }
|
||||
[JsonProperty("geoloc_has_location")]
|
||||
public bool? GeolocHasLocation { get; set; }
|
||||
[JsonProperty("geoloc_region")]
|
||||
public string? GeolocRegion { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class IPGeoFeed : CustomFields {
|
||||
public string? Prefix { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user