-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathParty.cs
More file actions
70 lines (60 loc) · 1.6 KB
/
Party.cs
File metadata and controls
70 lines (60 loc) · 1.6 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
using System.Text.Json.Serialization;
namespace Altinn.Register.Models;
/// <summary>
/// Represents a party in Altinn Register.
/// </summary>
public class Party
{
/// <summary>
/// Gets the type of the party.
/// </summary>
[JsonPropertyName("partyType")]
public string Type { get; }
/// <summary>
/// Gets the type of the party.
/// </summary>
[JsonPropertyName("personIdentifier")]
public string Pid { get; }
/// <summary>
/// Gets the UUID of the party.
/// </summary>
[JsonPropertyName("partyUuid")]
public Guid Uuid { get; init; }
/// <summary>
/// Gets the canonical URN of the party.
/// </summary>
[JsonPropertyName("urn")]
public string Urn { get; init; }
/// <summary>
/// Gets the ID of the party.
/// </summary>
[JsonPropertyName("partyId")]
public uint PartyId { get; init; }
/// <summary>
/// Gets the display-name of the party.
/// </summary>
[JsonPropertyName("displayName")]
public string DisplayName { get; init; }
/// <summary>
/// Gets the user object associated with the party.
/// </summary>
[JsonPropertyName("user")]
public User User { get; init; }
}
/// <summary>
/// Represents the user properties from Altinn Register.
/// </summary>
public class User
{
/// <summary>
/// Gets the userId of the party.
/// </summary>
[JsonPropertyName("userId")]
public uint UserId { get; }
/// <summary>
/// Gets the username of the party.
/// </summary>
[JsonPropertyName("username")]
public string Username { get; }
}