forked from WindowsAppCommunity/WindowsAppCommunity.Sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.cs
More file actions
65 lines (53 loc) · 1.96 KB
/
User.cs
File metadata and controls
65 lines (53 loc) · 1.96 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
using Ipfs;
using OwlCore.ComponentModel;
using System.Collections.Generic;
namespace WindowsAppCommunity.Sdk.Models;
/// <summary>
/// Represents a user.
/// </summary>
public record User : IEntity, IConnections, ILinkCollection, IProjectRoleCollection, IPublisherRoleCollection, ISources<Cid>
{
/// <summary>
/// The name of the user.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// A description of the user. Supports markdown.
/// </summary>
public string Description { get; set; } = string.Empty;
/// <summary>
/// An extended description of the user. Supports markdown.
/// </summary>
public string ExtendedDescription { get; set; } = string.Empty;
/// <summary>
/// Represents application connections added by the user.
/// </summary>
public Connection[] Connections { get; set; } = [];
/// <summary>
/// Represents links to external profiles or resources added by the user.
/// </summary>
public Link[] Links { get; set; } = [];
/// <summary>
/// Represents images that demonstrate this user.
/// </summary>
public Image[] Images { get; set; } = [];
/// <summary>
/// A list of all the projects the user is registered with, along with their role on the project.
/// </summary>
public ProjectRole[] Projects { get; set; } = [];
/// <summary>
/// Represents all publishers the user is registered with, along with their roles.
/// </summary>
public PublisherRole[] Publishers { get; set; } = [];
/// <summary>
/// A flag that indicates whether the profile has requested to be forgotten.
/// </summary>
public bool? ForgetMe { get; set; }
/// <summary>
/// A flag indicating whether this is an unlisted project.
/// </summary>
public bool IsUnlisted { get; set; }
/// <summary>
/// The event stream handler sources for this user.
public required ICollection<Cid> Sources { get; init; }
}