diff --git a/UmlautAdaptarr/Models/IpInfo.cs b/UmlautAdaptarr/Models/IpInfo.cs new file mode 100644 index 0000000..10142c0 --- /dev/null +++ b/UmlautAdaptarr/Models/IpInfo.cs @@ -0,0 +1,33 @@ +using System.Text.Json.Serialization; + +namespace UmlautAdaptarr.Utilities; + +public class IpInfo +{ + [JsonPropertyName("ip")] + public string Ip { get; set; } + + [JsonPropertyName("hostname")] + public string Hostname { get; set; } + + [JsonPropertyName("city")] + public string City { get; set; } + + [JsonPropertyName("region")] + public string Region { get; set; } + + [JsonPropertyName("country")] + public string Country { get; set; } + + [JsonPropertyName("loc")] + public string Loc { get; set; } + + [JsonPropertyName("org")] + public string Org { get; set; } + + [JsonPropertyName("postal")] + public string Postal { get; set; } + + [JsonPropertyName("timezone")] + public string Timezone { get; set; } +} \ No newline at end of file