Skip to content

Commit 62b1983

Browse files
committed
Align user/project collection and item usage with rest of codebase
1 parent b5e3d65 commit 62b1983

8 files changed

Lines changed: 42 additions & 3 deletions

File tree

.idea/.idea.WinAppCommunity.Sdk/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.WinAppCommunity.Sdk/.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.WinAppCommunity.Sdk/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.WinAppCommunity.Sdk/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/IModifiableProject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// <summary>
44
/// Represents a project that can be modified.
55
/// </summary>
6-
public interface IModifiableProject : IReadOnlyProject, IModifiableEntity, IModifiableImagesCollection, IModifiableUserRoleCollection, IModifiableAccentColor
6+
public interface IModifiableProject : IReadOnlyProject, IModifiableEntity, IModifiableImagesCollection, IModifiableUserRoleCollection, IModifiableAccentColor, IModifiableFeaturesCollection
77
{
88
/// <summary>
99
/// Updates the publisher for this project.

src/IModifiableProjectRole.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace WinAppCommunity.Sdk;
2+
3+
/// <summary>
4+
/// Represents a project with a corresponding role that can be modified.
5+
/// </summary>
6+
public interface IModifiableProjectRole : IReadOnlyProjectRole, IModifiableProject
7+
{
8+
}

src/IReadOnlyProject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public interface IReadOnlyProject : IReadOnlyProject<IReadOnlyProjectCollection>
1010
/// <summary>
1111
/// Represents a project.
1212
/// </summary>
13-
public interface IReadOnlyProject<TDependencyCollection> : IReadOnlyEntity, IReadOnlyImagesCollection, IReadOnlyUserRoleCollection, IReadOnlyAccentColor
13+
public interface IReadOnlyProject<out TDependencyCollection> : IReadOnlyEntity, IReadOnlyImagesCollection, IReadOnlyUserRoleCollection, IReadOnlyAccentColor, IReadOnlyFeaturesCollection
1414
where TDependencyCollection : IReadOnlyProjectCollection
1515
{
1616
/// <summary>

src/IReadOnlyUserCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface IReadOnlyUserCollection : IReadOnlyUserCollection<IReadOnlyUser
1313
/// Represents a collection of users with a corresponding role that can be modified.
1414
/// </summary>
1515
/// <typeparam name="TUser">The type of user in this collection.</typeparam>
16-
public interface IReadOnlyUserCollection<TUser>
16+
public interface IReadOnlyUserCollection<out TUser>
1717
where TUser : IReadOnlyUser
1818
{
1919
/// <summary>

0 commit comments

Comments
 (0)