-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPublisher.cs
More file actions
79 lines (64 loc) · 2.51 KB
/
Publisher.cs
File metadata and controls
79 lines (64 loc) · 2.51 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
71
72
73
74
75
76
77
78
79
using Ipfs;
using OwlCore.ComponentModel;
using System.Collections.Generic;
namespace WindowsAppCommunity.Sdk.Models;
/// <summary>
/// Represents a content publisher.
/// </summary>
public record Publisher : IEntity, ILinkCollection, IProjectCollection, IUserRoleCollection, IPublisherRoleGraphNodeCollection, IConnections, IAccentColor, ISources<Cid>
{
/// <summary>
/// The name of the publisher.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// A description of the publisher.
/// </summary>
public string Description { get; set; } = string.Empty;
/// <summary>
/// An extended description of the publisher.
/// </summary>
public string ExtendedDescription { get; set; } = string.Empty;
/// <summary>
/// A hex-encoded accent color for this publisher.
/// </summary>
public string? AccentColor { get; set; }
/// <summary>
/// Represents links to external profiles or resources added by the publisher.
/// </summary>
public Link[] Links { get; set; } = [];
/// <summary>
/// Represents images that demonstrate this publisher.
/// </summary>
public Image[] Images { get; set; } = [];
/// <summary>
/// Users who are registered to participate in this publisher, along with their roles.
/// </summary>
public UserRole[] Users { get; set; } = [];
/// <summary>
/// Projects who are registered under this publisher.
/// </summary>
public Cid[] Projects { get; set; } = [];
/// <summary>
/// A list of other publishers who are managed under this publisher.
/// </summary>
public PublisherRoleCollection ParentPublishers { get; set; } = new();
/// <summary>
/// A list of other publishers who are managed under this publisher.
/// </summary>
public PublisherRoleCollection ChildPublishers { get; set; } = new();
/// <summary>
/// Holds information about publisher assets that have been published for consumption by an end user, such as a Microsoft Store app, a package on nuget.org, a git repo, etc.
/// </summary>
public Connection[] Connections { 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 a non-public publisher.
/// </summary>
public bool IsUnlisted { get; set; }
/// <inheritdoc/>
public required ICollection<Cid> Sources { get; init; }
}