From 74104c300e6b2182f5d87341ac3ccc4c03be39b9 Mon Sep 17 00:00:00 2001 From: Felix Glang Date: Sun, 9 Jun 2024 13:40:47 +0200 Subject: [PATCH] Create IpInfo.cs Move To Model --- UmlautAdaptarr/Models/IpInfo.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 UmlautAdaptarr/Models/IpInfo.cs 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