Create IpInfo.cs
Move To Model
This commit is contained in:
33
UmlautAdaptarr/Models/IpInfo.cs
Normal file
33
UmlautAdaptarr/Models/IpInfo.cs
Normal file
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user