Repository navigation
Expand file tree
/
Copy pathRDAPQuery.cs
More file actions
49 lines (40 loc) · 1.36 KB
/
Copy pathRDAPQuery.cs
File metadata and controls
49 lines (40 loc) · 1.36 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
40
41
42
43
44
45
46
47
48
49
using System.Net;
namespace NETworkManager.Models.RDAP;
/// <summary>
/// Normalized RDAP query, created by <see cref="RDAPQueryParser" />.
/// </summary>
public class RDAPQuery
{
/// <summary>
/// Type of the query.
/// </summary>
public RDAPQueryType Type { get; init; }
/// <summary>
/// Normalized value as sent on the wire (A-label domain, asplain ASN, CIDR, handle).
/// </summary>
public string Value { get; init; }
/// <summary>
/// Path segment that is appended to a base RDAP URL (e.g. "domain/example.com").
/// </summary>
public string PathSegment { get; init; }
/// <summary>
/// Domain name in A-label form (Domain and TLD queries only).
/// </summary>
public string DomainName { get; init; }
/// <summary>
/// IP address or network address of the prefix (IP address queries only).
/// </summary>
public IPAddress IPAddress { get; init; }
/// <summary>
/// Prefix length, or null if a single address is queried (IP address queries only).
/// </summary>
public int? PrefixLength { get; init; }
/// <summary>
/// Autonomous system number (ASN queries only).
/// </summary>
public uint ASN { get; init; }
/// <summary>
/// Entity handle (Entity queries only).
/// </summary>
public string Handle { get; init; }
}