From 62b1983915cbd032d35e8ecdcb9b2691f106e9b3 Mon Sep 17 00:00:00 2001 From: Arlo Date: Sat, 30 Nov 2024 17:31:50 -0600 Subject: [PATCH] Align user/project collection and item usage with rest of codebase --- .idea/.idea.WinAppCommunity.Sdk/.idea/.gitignore | 13 +++++++++++++ .idea/.idea.WinAppCommunity.Sdk/.idea/encodings.xml | 4 ++++ .../.idea.WinAppCommunity.Sdk/.idea/indexLayout.xml | 8 ++++++++ .idea/.idea.WinAppCommunity.Sdk/.idea/vcs.xml | 6 ++++++ src/IModifiableProject.cs | 2 +- src/IModifiableProjectRole.cs | 8 ++++++++ src/IReadOnlyProject.cs | 2 +- src/IReadOnlyUserCollection.cs | 2 +- 8 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .idea/.idea.WinAppCommunity.Sdk/.idea/.gitignore create mode 100644 .idea/.idea.WinAppCommunity.Sdk/.idea/encodings.xml create mode 100644 .idea/.idea.WinAppCommunity.Sdk/.idea/indexLayout.xml create mode 100644 .idea/.idea.WinAppCommunity.Sdk/.idea/vcs.xml create mode 100644 src/IModifiableProjectRole.cs diff --git a/.idea/.idea.WinAppCommunity.Sdk/.idea/.gitignore b/.idea/.idea.WinAppCommunity.Sdk/.idea/.gitignore new file mode 100644 index 0000000..f1cd8f1 --- /dev/null +++ b/.idea/.idea.WinAppCommunity.Sdk/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/.idea.WinAppCommunity.Sdk.iml +/contentModel.xml +/projectSettingsUpdater.xml +/modules.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.WinAppCommunity.Sdk/.idea/encodings.xml b/.idea/.idea.WinAppCommunity.Sdk/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.WinAppCommunity.Sdk/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.WinAppCommunity.Sdk/.idea/indexLayout.xml b/.idea/.idea.WinAppCommunity.Sdk/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.WinAppCommunity.Sdk/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.WinAppCommunity.Sdk/.idea/vcs.xml b/.idea/.idea.WinAppCommunity.Sdk/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/.idea.WinAppCommunity.Sdk/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/IModifiableProject.cs b/src/IModifiableProject.cs index 4dd19b7..abc00e4 100644 --- a/src/IModifiableProject.cs +++ b/src/IModifiableProject.cs @@ -3,7 +3,7 @@ /// /// Represents a project that can be modified. /// -public interface IModifiableProject : IReadOnlyProject, IModifiableEntity, IModifiableImagesCollection, IModifiableUserRoleCollection, IModifiableAccentColor +public interface IModifiableProject : IReadOnlyProject, IModifiableEntity, IModifiableImagesCollection, IModifiableUserRoleCollection, IModifiableAccentColor, IModifiableFeaturesCollection { /// /// Updates the publisher for this project. diff --git a/src/IModifiableProjectRole.cs b/src/IModifiableProjectRole.cs new file mode 100644 index 0000000..a354896 --- /dev/null +++ b/src/IModifiableProjectRole.cs @@ -0,0 +1,8 @@ +namespace WinAppCommunity.Sdk; + +/// +/// Represents a project with a corresponding role that can be modified. +/// +public interface IModifiableProjectRole : IReadOnlyProjectRole, IModifiableProject +{ +} \ No newline at end of file diff --git a/src/IReadOnlyProject.cs b/src/IReadOnlyProject.cs index d3c4d85..a653f99 100644 --- a/src/IReadOnlyProject.cs +++ b/src/IReadOnlyProject.cs @@ -10,7 +10,7 @@ public interface IReadOnlyProject : IReadOnlyProject /// /// Represents a project. /// -public interface IReadOnlyProject : IReadOnlyEntity, IReadOnlyImagesCollection, IReadOnlyUserRoleCollection, IReadOnlyAccentColor +public interface IReadOnlyProject : IReadOnlyEntity, IReadOnlyImagesCollection, IReadOnlyUserRoleCollection, IReadOnlyAccentColor, IReadOnlyFeaturesCollection where TDependencyCollection : IReadOnlyProjectCollection { /// diff --git a/src/IReadOnlyUserCollection.cs b/src/IReadOnlyUserCollection.cs index e49e0d0..dc10f3d 100644 --- a/src/IReadOnlyUserCollection.cs +++ b/src/IReadOnlyUserCollection.cs @@ -13,7 +13,7 @@ public interface IReadOnlyUserCollection : IReadOnlyUserCollection /// The type of user in this collection. -public interface IReadOnlyUserCollection +public interface IReadOnlyUserCollection where TUser : IReadOnlyUser { ///