You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#3
Refactor models to align with the refined API spec.
* **Project Model Changes:**
- Remove `HeroImage`, `CreatedAt`, and `Icon` properties.
- Add `ExtendedDescription` property.
- Remove constructor.
- Provide default values for `Images`, `Features`, `Dependencies`, `Collaborators`, `Links`, and `Connections`.
- Mark `Publisher`, `Name`, `Description`, `Category`, and `CreatedAt` as `required`.
- Replace `Cid` with `DagCid`.
- Change `Collaborators` to a `Dictionary<DagCid, Role>` type.
- Use an empty collection expression `[]` instead of `Array.Empty<T>`.
- Remove all JSON-related attributes.
* **Publisher Model Changes:**
- Remove `Owner`, `ContactEmail`, and `Icon` properties.
- Add `Users + Roles`, `Connections`, `Links`, `ExtendedDescription`, and `ForgetMe` properties.
- Remove constructor.
- Provide default values for `Links`, `Projects`, `Users`, `ParentPublishers`, and `ChildPublishers`.
- Mark `Name`, `Description`, and `Owner` as `required`.
- Replace `Cid` with `DagCid`.
- Use an empty collection expression `[]` instead of `Array.Empty<T>`.
- Remove all JSON-related attributes.
* **User Model Changes:**
- Remove `MarkdownAboutMe` and `Icon` properties.
- Add `Projects + Roles`, `Publisher + Roles`, and `ExtendedDescription` properties.
- Rename `MarkdownAboutMe` to `ExtendedDescription`.
- Provide default values for `Connections`, `Links`, `Projects`, and `Publishers`.
- Mark `Name` and `ExtendedDescription` as `required`.
- Replace `Cid` with `DagCid`.
- Use an empty collection expression `[]` instead of `Array.Empty<T>`.
- Remove all JSON-related attributes.
* **Update Events Changes:**
- Update any mention of `IsPrivate` to `IsUnlisted` in `ProjectUpdateEvent` and `PublisherUpdateEvent`.
- Remove lines 31 and 33 in `ProjectUpdateEvent`.
* **Link Model Changes:**
- Replace `Cid` with `DagCid`.
- Remove all JSON-related attributes.
* **Role Model Changes:**
- Mark `Name` and `Description` as `required`.
* **IModifiableEntity Changes:**
- Add `UpdateExtendedDescriptionAsync` method.
- Add `ExtendedDescriptionUpdated` event.
* **IReadOnlyEntity Changes:**
- Add `ExtendedDescription` property.
- Add `ExtendedDescriptionUpdated` event.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/WindowsAppCommunity/WinAppCommunity.Sdk/issues/3?shareId=XXXX-XXXX-XXXX-XXXX).
/// Represents links to external profiles or resources added by the user.
@@ -108,7 +66,7 @@ public Project()
108
66
/// <summary>
109
67
/// Holds information about project 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.
/// Users who are registered to participate in this publisher.
42
+
/// A list of other publishers who are managed under this publisher.
69
43
/// </summary>
70
-
publicCid[]Users{get;set;}=[];
44
+
publicDagCid[]ParentPublishers{get;set;}=[];
71
45
72
46
/// <summary>
73
47
/// A list of other publishers who are managed under this publisher.
74
48
/// </summary>
75
-
publicCid[]ParentPublishers{get;set;}=[];
49
+
publicDagCid[]ChildPublishers{get;set;}=[];
76
50
77
51
/// <summary>
78
-
/// A list of other publishers who are managed under this publisher.
52
+
/// 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.
0 commit comments