-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathIPResponseResproxy.cs
More file actions
39 lines (34 loc) · 1.16 KB
/
IPResponseResproxy.cs
File metadata and controls
39 lines (34 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Text.Json.Serialization;
namespace IPinfo.Models
{
/// <summary>
/// Residential proxy detection response.
/// </summary>
public class IPResponseResproxy
{
/// <summary>
/// The IP address.
/// </summary>
[JsonPropertyName("ip")]
public string IP { get; set; }
/// <summary>
/// The last time this IP was seen as a residential proxy.
/// </summary>
[JsonPropertyName("last_seen")]
public string LastSeen { get; set; }
/// <summary>
/// The percentage of days seen as a residential proxy.
/// </summary>
[JsonPropertyName("percent_days_seen")]
public double? PercentDaysSeen { get; set; }
/// <summary>
/// The residential proxy service name.
/// </summary>
[JsonPropertyName("service")]
public string Service { get; set; }
// immutable type
[JsonConstructor]
public IPResponseResproxy(string ip, string lastSeen, double? percentDaysSeen, string service) =>
(IP, LastSeen, PercentDaysSeen, Service) = (ip, lastSeen, percentDaysSeen, service);
}
}