diff --git a/src/Piwigo.Client.Autofac/PiwigoModule.cs b/src/Piwigo.Client.Autofac/PiwigoModule.cs index f2ed545..e3fb9c7 100644 --- a/src/Piwigo.Client.Autofac/PiwigoModule.cs +++ b/src/Piwigo.Client.Autofac/PiwigoModule.cs @@ -1,4 +1,8 @@ using Autofac; +using Piwigo.Client.Albums; +using Piwigo.Client.Images; +using Piwigo.Client.Session; +using Piwigo.Client.Tags; namespace Piwigo.Client.Autofac; diff --git a/src/Piwigo.Client.Tests/AlbumApiTests.cs b/src/Piwigo.Client.Tests/AlbumApiTests.cs index a95bce2..4781b2b 100644 --- a/src/Piwigo.Client.Tests/AlbumApiTests.cs +++ b/src/Piwigo.Client.Tests/AlbumApiTests.cs @@ -1,5 +1,5 @@ using Microsoft.Extensions.Logging.Abstractions; -using Piwigo.Client.Contract; +using Piwigo.Client.Albums; namespace Piwigo.Client.Tests; diff --git a/src/Piwigo.Client.Tests/ApiTestsBase.cs b/src/Piwigo.Client.Tests/ApiTestsBase.cs index 8301d42..af932fb 100644 --- a/src/Piwigo.Client.Tests/ApiTestsBase.cs +++ b/src/Piwigo.Client.Tests/ApiTestsBase.cs @@ -4,7 +4,6 @@ using Flurl.Http.Content; using Flurl.Http.Testing; using Microsoft.Extensions.Logging.Abstractions; using Newtonsoft.Json; -using Piwigo.Client.Contract; namespace Piwigo.Client.Tests; diff --git a/src/Piwigo.Client.Tests/ImageApiTests.cs b/src/Piwigo.Client.Tests/ImageApiTests.cs index 6076b5c..231acbf 100644 --- a/src/Piwigo.Client.Tests/ImageApiTests.cs +++ b/src/Piwigo.Client.Tests/ImageApiTests.cs @@ -1,6 +1,6 @@ using System.Text; using Microsoft.Extensions.Logging.Abstractions; -using Piwigo.Client.Contract; +using Piwigo.Client.Images; namespace Piwigo.Client.Tests; diff --git a/src/Piwigo.Client.Tests/SessionApiTests.cs b/src/Piwigo.Client.Tests/SessionApiTests.cs index 7a07825..3954a2c 100644 --- a/src/Piwigo.Client.Tests/SessionApiTests.cs +++ b/src/Piwigo.Client.Tests/SessionApiTests.cs @@ -1,5 +1,5 @@ using Microsoft.Extensions.Logging.Abstractions; -using Piwigo.Client.Contract; +using Piwigo.Client.Session; namespace Piwigo.Client.Tests; diff --git a/src/Piwigo.Client/Contract/Album.cs b/src/Piwigo.Client/Albums/Album.cs similarity index 97% rename from src/Piwigo.Client/Contract/Album.cs rename to src/Piwigo.Client/Albums/Album.cs index 23c33d6..93f77d1 100644 --- a/src/Piwigo.Client/Contract/Album.cs +++ b/src/Piwigo.Client/Albums/Album.cs @@ -1,7 +1,7 @@ using System.Diagnostics.CodeAnalysis; using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Albums; [SuppressMessage("ReSharper", "StringLiteralTypo")] public record Album diff --git a/src/Piwigo.Client/Contract/AlbumAdded.cs b/src/Piwigo.Client/Albums/AlbumAdded.cs similarity index 84% rename from src/Piwigo.Client/Contract/AlbumAdded.cs rename to src/Piwigo.Client/Albums/AlbumAdded.cs index 75e95c5..dbac3bf 100644 --- a/src/Piwigo.Client/Contract/AlbumAdded.cs +++ b/src/Piwigo.Client/Albums/AlbumAdded.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Albums; internal record AlbumAdded { diff --git a/src/Piwigo.Client/AlbumApi.cs b/src/Piwigo.Client/Albums/AlbumApi.cs similarity index 99% rename from src/Piwigo.Client/AlbumApi.cs rename to src/Piwigo.Client/Albums/AlbumApi.cs index c629c4b..3708dd8 100644 --- a/src/Piwigo.Client/AlbumApi.cs +++ b/src/Piwigo.Client/Albums/AlbumApi.cs @@ -1,8 +1,7 @@ using System.Collections.ObjectModel; using Microsoft.Extensions.Logging; -using Piwigo.Client.Contract; -namespace Piwigo.Client; +namespace Piwigo.Client.Albums; public class AlbumApi : IAlbumApi { diff --git a/src/Piwigo.Client/Contract/AlbumList.cs b/src/Piwigo.Client/Albums/AlbumList.cs similarity index 80% rename from src/Piwigo.Client/Contract/AlbumList.cs rename to src/Piwigo.Client/Albums/AlbumList.cs index 977b824..f6d0da9 100644 --- a/src/Piwigo.Client/Contract/AlbumList.cs +++ b/src/Piwigo.Client/Albums/AlbumList.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Albums; internal record AlbumList { diff --git a/src/Piwigo.Client/Contract/AlbumOrphans.cs b/src/Piwigo.Client/Albums/AlbumOrphans.cs similarity index 91% rename from src/Piwigo.Client/Contract/AlbumOrphans.cs rename to src/Piwigo.Client/Albums/AlbumOrphans.cs index 047e266..24c71b2 100644 --- a/src/Piwigo.Client/Contract/AlbumOrphans.cs +++ b/src/Piwigo.Client/Albums/AlbumOrphans.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Albums; public record AlbumOrphans { diff --git a/src/Piwigo.Client/Contract/AlbumPosition.cs b/src/Piwigo.Client/Albums/AlbumPosition.cs similarity index 63% rename from src/Piwigo.Client/Contract/AlbumPosition.cs rename to src/Piwigo.Client/Albums/AlbumPosition.cs index 5bb67de..79dbf60 100644 --- a/src/Piwigo.Client/Contract/AlbumPosition.cs +++ b/src/Piwigo.Client/Albums/AlbumPosition.cs @@ -1,4 +1,4 @@ -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Albums; public enum AlbumPosition { diff --git a/src/Piwigo.Client/Contract/AlbumStatus.cs b/src/Piwigo.Client/Albums/AlbumStatus.cs similarity index 63% rename from src/Piwigo.Client/Contract/AlbumStatus.cs rename to src/Piwigo.Client/Albums/AlbumStatus.cs index 8081758..cc3f91d 100644 --- a/src/Piwigo.Client/Contract/AlbumStatus.cs +++ b/src/Piwigo.Client/Albums/AlbumStatus.cs @@ -1,4 +1,4 @@ -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Albums; public enum AlbumStatus { diff --git a/src/Piwigo.Client/IAlbumApi.cs b/src/Piwigo.Client/Albums/IAlbumApi.cs similarity index 95% rename from src/Piwigo.Client/IAlbumApi.cs rename to src/Piwigo.Client/Albums/IAlbumApi.cs index d5ae15d..5c5c85f 100644 --- a/src/Piwigo.Client/IAlbumApi.cs +++ b/src/Piwigo.Client/Albums/IAlbumApi.cs @@ -1,6 +1,4 @@ -using Piwigo.Client.Contract; - -namespace Piwigo.Client; +namespace Piwigo.Client.Albums; public interface IAlbumApi { diff --git a/src/Piwigo.Client/Contract/ThumbnailSize.cs b/src/Piwigo.Client/Albums/ThumbnailSize.cs similarity index 75% rename from src/Piwigo.Client/Contract/ThumbnailSize.cs rename to src/Piwigo.Client/Albums/ThumbnailSize.cs index 57ac1ef..5d43683 100644 --- a/src/Piwigo.Client/Contract/ThumbnailSize.cs +++ b/src/Piwigo.Client/Albums/ThumbnailSize.cs @@ -1,4 +1,4 @@ -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Albums; public enum ThumbnailSize { diff --git a/src/Piwigo.Client/IPiwigoClient.cs b/src/Piwigo.Client/IPiwigoClient.cs index b67a7b6..f97692b 100644 --- a/src/Piwigo.Client/IPiwigoClient.cs +++ b/src/Piwigo.Client/IPiwigoClient.cs @@ -1,4 +1,9 @@ -namespace Piwigo.Client; +using Piwigo.Client.Albums; +using Piwigo.Client.Images; +using Piwigo.Client.Session; +using Piwigo.Client.Tags; + +namespace Piwigo.Client; public interface IPiwigoClient { diff --git a/src/Piwigo.Client/IPiwigoContext.cs b/src/Piwigo.Client/IPiwigoContext.cs index 4e8cb1f..2e72c3a 100644 --- a/src/Piwigo.Client/IPiwigoContext.cs +++ b/src/Piwigo.Client/IPiwigoContext.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.Logging; -using Piwigo.Client.Contract; namespace Piwigo.Client; diff --git a/src/Piwigo.Client/ITagApi.cs b/src/Piwigo.Client/ITagApi.cs deleted file mode 100644 index 57316cc..0000000 --- a/src/Piwigo.Client/ITagApi.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace Piwigo.Client; - -public interface ITagApi -{ -} \ No newline at end of file diff --git a/src/Piwigo.Client/Contract/CheckFilesResult.cs b/src/Piwigo.Client/Images/CheckFilesResult.cs similarity index 94% rename from src/Piwigo.Client/Contract/CheckFilesResult.cs rename to src/Piwigo.Client/Images/CheckFilesResult.cs index e198edf..7ee3f75 100644 --- a/src/Piwigo.Client/Contract/CheckFilesResult.cs +++ b/src/Piwigo.Client/Images/CheckFilesResult.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record CheckFilesResult { diff --git a/src/Piwigo.Client/Contract/CheckUpload.cs b/src/Piwigo.Client/Images/CheckUpload.cs similarity index 85% rename from src/Piwigo.Client/Contract/CheckUpload.cs rename to src/Piwigo.Client/Images/CheckUpload.cs index fd39462..f008a3a 100644 --- a/src/Piwigo.Client/Contract/CheckUpload.cs +++ b/src/Piwigo.Client/Images/CheckUpload.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; internal record CheckUpload { diff --git a/src/Piwigo.Client/Contract/Comment.cs b/src/Piwigo.Client/Images/Comment.cs similarity index 90% rename from src/Piwigo.Client/Contract/Comment.cs rename to src/Piwigo.Client/Images/Comment.cs index 0578c20..fdceb3e 100644 --- a/src/Piwigo.Client/Contract/Comment.cs +++ b/src/Piwigo.Client/Images/Comment.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record Comment { diff --git a/src/Piwigo.Client/Contract/CommentAdded.cs b/src/Piwigo.Client/Images/CommentAdded.cs similarity index 80% rename from src/Piwigo.Client/Contract/CommentAdded.cs rename to src/Piwigo.Client/Images/CommentAdded.cs index 108bc4f..5b07554 100644 --- a/src/Piwigo.Client/Contract/CommentAdded.cs +++ b/src/Piwigo.Client/Images/CommentAdded.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; internal record CommentAdded { diff --git a/src/Piwigo.Client/Contract/CommentPagingInfo.cs b/src/Piwigo.Client/Images/CommentPagingInfo.cs similarity index 88% rename from src/Piwigo.Client/Contract/CommentPagingInfo.cs rename to src/Piwigo.Client/Images/CommentPagingInfo.cs index 074b050..fda03ab 100644 --- a/src/Piwigo.Client/Contract/CommentPagingInfo.cs +++ b/src/Piwigo.Client/Images/CommentPagingInfo.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record CommentPagingInfo([property: JsonProperty("page")] int Page, [property: JsonProperty("per_page")] int PageSize, [property: JsonProperty("count")] int Count, [property: JsonProperty("total_count")] diff --git a/src/Piwigo.Client/Contract/CommentPost.cs b/src/Piwigo.Client/Images/CommentPost.cs similarity index 84% rename from src/Piwigo.Client/Contract/CommentPost.cs rename to src/Piwigo.Client/Images/CommentPost.cs index 114a50e..f35f69a 100644 --- a/src/Piwigo.Client/Contract/CommentPost.cs +++ b/src/Piwigo.Client/Images/CommentPost.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record CommentPost { diff --git a/src/Piwigo.Client/IImageApi.cs b/src/Piwigo.Client/Images/IImageApi.cs similarity index 99% rename from src/Piwigo.Client/IImageApi.cs rename to src/Piwigo.Client/Images/IImageApi.cs index ec7dab6..d9503b0 100644 --- a/src/Piwigo.Client/IImageApi.cs +++ b/src/Piwigo.Client/Images/IImageApi.cs @@ -1,6 +1,6 @@ -using Piwigo.Client.Contract; +using Piwigo.Client.Session; -namespace Piwigo.Client; +namespace Piwigo.Client.Images; public interface IImageApi { diff --git a/src/Piwigo.Client/Contract/Image.cs b/src/Piwigo.Client/Images/Image.cs similarity index 97% rename from src/Piwigo.Client/Contract/Image.cs rename to src/Piwigo.Client/Images/Image.cs index a5302ab..099c4d7 100644 --- a/src/Piwigo.Client/Contract/Image.cs +++ b/src/Piwigo.Client/Images/Image.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record Image { diff --git a/src/Piwigo.Client/Contract/ImageAlbum.cs b/src/Piwigo.Client/Images/ImageAlbum.cs similarity index 92% rename from src/Piwigo.Client/Contract/ImageAlbum.cs rename to src/Piwigo.Client/Images/ImageAlbum.cs index f2a914b..8cbd850 100644 --- a/src/Piwigo.Client/Contract/ImageAlbum.cs +++ b/src/Piwigo.Client/Images/ImageAlbum.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record ImageAlbum { diff --git a/src/Piwigo.Client/ImageApi.cs b/src/Piwigo.Client/Images/ImageApi.cs similarity index 99% rename from src/Piwigo.Client/ImageApi.cs rename to src/Piwigo.Client/Images/ImageApi.cs index bcf12da..50443d8 100644 --- a/src/Piwigo.Client/ImageApi.cs +++ b/src/Piwigo.Client/Images/ImageApi.cs @@ -1,8 +1,7 @@ using System.Globalization; using Microsoft.Extensions.Logging; -using Piwigo.Client.Contract; -namespace Piwigo.Client; +namespace Piwigo.Client.Images; public class ImageApi : IImageApi { diff --git a/src/Piwigo.Client/Contract/ImageCheckStatus.cs b/src/Piwigo.Client/Images/ImageCheckStatus.cs similarity index 68% rename from src/Piwigo.Client/Contract/ImageCheckStatus.cs rename to src/Piwigo.Client/Images/ImageCheckStatus.cs index 036d949..74be16f 100644 --- a/src/Piwigo.Client/Contract/ImageCheckStatus.cs +++ b/src/Piwigo.Client/Images/ImageCheckStatus.cs @@ -1,4 +1,4 @@ -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public enum ImageCheckStatus { diff --git a/src/Piwigo.Client/Contract/ImageDerivative.cs b/src/Piwigo.Client/Images/ImageDerivative.cs similarity index 88% rename from src/Piwigo.Client/Contract/ImageDerivative.cs rename to src/Piwigo.Client/Images/ImageDerivative.cs index cd13cb2..f89f624 100644 --- a/src/Piwigo.Client/Contract/ImageDerivative.cs +++ b/src/Piwigo.Client/Images/ImageDerivative.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record ImageDerivative { diff --git a/src/Piwigo.Client/Contract/ImageFilter.cs b/src/Piwigo.Client/Images/ImageFilter.cs similarity index 96% rename from src/Piwigo.Client/Contract/ImageFilter.cs rename to src/Piwigo.Client/Images/ImageFilter.cs index 73a4afe..996ac3b 100644 --- a/src/Piwigo.Client/Contract/ImageFilter.cs +++ b/src/Piwigo.Client/Images/ImageFilter.cs @@ -1,6 +1,6 @@ using System.Diagnostics.CodeAnalysis; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")] public record ImageFilter diff --git a/src/Piwigo.Client/Contract/ImageInfo.cs b/src/Piwigo.Client/Images/ImageInfo.cs similarity index 92% rename from src/Piwigo.Client/Contract/ImageInfo.cs rename to src/Piwigo.Client/Images/ImageInfo.cs index b00c530..3f05e5b 100644 --- a/src/Piwigo.Client/Contract/ImageInfo.cs +++ b/src/Piwigo.Client/Images/ImageInfo.cs @@ -1,4 +1,4 @@ -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record ImageInfo { diff --git a/src/Piwigo.Client/Contract/ImageOrder.cs b/src/Piwigo.Client/Images/ImageOrder.cs similarity index 79% rename from src/Piwigo.Client/Contract/ImageOrder.cs rename to src/Piwigo.Client/Images/ImageOrder.cs index 1cbb5ad..8ae134b 100644 --- a/src/Piwigo.Client/Contract/ImageOrder.cs +++ b/src/Piwigo.Client/Images/ImageOrder.cs @@ -1,4 +1,4 @@ -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public enum ImageOrder { diff --git a/src/Piwigo.Client/Contract/ImagePagingInfo.cs b/src/Piwigo.Client/Images/ImagePagingInfo.cs similarity index 85% rename from src/Piwigo.Client/Contract/ImagePagingInfo.cs rename to src/Piwigo.Client/Images/ImagePagingInfo.cs index 4d6b4ba..fe375b8 100644 --- a/src/Piwigo.Client/Contract/ImagePagingInfo.cs +++ b/src/Piwigo.Client/Images/ImagePagingInfo.cs @@ -1,5 +1,5 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record ImagePagingInfo([property: JsonProperty("page")] int Page, [property: JsonProperty("per_page")] int PageSize, [property: JsonProperty("count")] int TotalItems); \ No newline at end of file diff --git a/src/Piwigo.Client/Contract/ImageRating.cs b/src/Piwigo.Client/Images/ImageRating.cs similarity index 88% rename from src/Piwigo.Client/Contract/ImageRating.cs rename to src/Piwigo.Client/Images/ImageRating.cs index 808c9c0..c82135a 100644 --- a/src/Piwigo.Client/Contract/ImageRating.cs +++ b/src/Piwigo.Client/Images/ImageRating.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record ImageRating { diff --git a/src/Piwigo.Client/Contract/ImageUpload.cs b/src/Piwigo.Client/Images/ImageUpload.cs similarity index 63% rename from src/Piwigo.Client/Contract/ImageUpload.cs rename to src/Piwigo.Client/Images/ImageUpload.cs index eee80fc..ef1b56c 100644 --- a/src/Piwigo.Client/Contract/ImageUpload.cs +++ b/src/Piwigo.Client/Images/ImageUpload.cs @@ -1,3 +1,3 @@ -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record ImageUpload(string OriginalSum) : ImageInfo; \ No newline at end of file diff --git a/src/Piwigo.Client/Contract/ImageUploaded.cs b/src/Piwigo.Client/Images/ImageUploaded.cs similarity index 84% rename from src/Piwigo.Client/Contract/ImageUploaded.cs rename to src/Piwigo.Client/Images/ImageUploaded.cs index 55065b7..a51cc8d 100644 --- a/src/Piwigo.Client/Contract/ImageUploaded.cs +++ b/src/Piwigo.Client/Images/ImageUploaded.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record ImageUploaded { diff --git a/src/Piwigo.Client/Contract/OrphanImagesDeleted.cs b/src/Piwigo.Client/Images/OrphanImagesDeleted.cs similarity index 90% rename from src/Piwigo.Client/Contract/OrphanImagesDeleted.cs rename to src/Piwigo.Client/Images/OrphanImagesDeleted.cs index c999101..d36cbff 100644 --- a/src/Piwigo.Client/Contract/OrphanImagesDeleted.cs +++ b/src/Piwigo.Client/Images/OrphanImagesDeleted.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record OrphanImagesDeleted { diff --git a/src/Piwigo.Client/Contract/PagedImages.cs b/src/Piwigo.Client/Images/PagedImages.cs similarity index 87% rename from src/Piwigo.Client/Contract/PagedImages.cs rename to src/Piwigo.Client/Images/PagedImages.cs index 7329ea7..b1f41e3 100644 --- a/src/Piwigo.Client/Contract/PagedImages.cs +++ b/src/Piwigo.Client/Images/PagedImages.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public record PagedImages { diff --git a/src/Piwigo.Client/Contract/ValueUpdateMode.cs b/src/Piwigo.Client/Images/ValueUpdateMode.cs similarity index 90% rename from src/Piwigo.Client/Contract/ValueUpdateMode.cs rename to src/Piwigo.Client/Images/ValueUpdateMode.cs index 6f8264a..3965423 100644 --- a/src/Piwigo.Client/Contract/ValueUpdateMode.cs +++ b/src/Piwigo.Client/Images/ValueUpdateMode.cs @@ -1,4 +1,4 @@ -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Images; public enum ValueUpdateMode { diff --git a/src/Piwigo.Client/PiwigoClient.cs b/src/Piwigo.Client/PiwigoClient.cs index 13a2808..99f9f90 100644 --- a/src/Piwigo.Client/PiwigoClient.cs +++ b/src/Piwigo.Client/PiwigoClient.cs @@ -1,3 +1,8 @@ +using Piwigo.Client.Albums; +using Piwigo.Client.Images; +using Piwigo.Client.Session; +using Piwigo.Client.Tags; + namespace Piwigo.Client; public class PiwigoClient : IPiwigoClient diff --git a/src/Piwigo.Client/PiwigoContext.cs b/src/Piwigo.Client/PiwigoContext.cs index c8412b0..c060b57 100644 --- a/src/Piwigo.Client/PiwigoContext.cs +++ b/src/Piwigo.Client/PiwigoContext.cs @@ -2,7 +2,6 @@ using System.Net; using Flurl.Http; using Flurl.Http.Content; using Microsoft.Extensions.Logging; -using Piwigo.Client.Contract; namespace Piwigo.Client; diff --git a/src/Piwigo.Client/Contract/PiwigoResponse.cs b/src/Piwigo.Client/PiwigoResponse.cs similarity index 93% rename from src/Piwigo.Client/Contract/PiwigoResponse.cs rename to src/Piwigo.Client/PiwigoResponse.cs index 7c38b36..2a926eb 100644 --- a/src/Piwigo.Client/Contract/PiwigoResponse.cs +++ b/src/Piwigo.Client/PiwigoResponse.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client; public record PiwigoResponse { diff --git a/src/Piwigo.Client/ISessionApi.cs b/src/Piwigo.Client/Session/ISessionApi.cs similarity index 82% rename from src/Piwigo.Client/ISessionApi.cs rename to src/Piwigo.Client/Session/ISessionApi.cs index cd3bd8c..5880caa 100644 --- a/src/Piwigo.Client/ISessionApi.cs +++ b/src/Piwigo.Client/Session/ISessionApi.cs @@ -1,6 +1,4 @@ -using Piwigo.Client.Contract; - -namespace Piwigo.Client; +namespace Piwigo.Client.Session; public interface ISessionApi { diff --git a/src/Piwigo.Client/SessionApi.cs b/src/Piwigo.Client/Session/SessionApi.cs similarity index 94% rename from src/Piwigo.Client/SessionApi.cs rename to src/Piwigo.Client/Session/SessionApi.cs index 4f2523f..b37e458 100644 --- a/src/Piwigo.Client/SessionApi.cs +++ b/src/Piwigo.Client/Session/SessionApi.cs @@ -1,7 +1,6 @@ using Microsoft.Extensions.Logging; -using Piwigo.Client.Contract; -namespace Piwigo.Client; +namespace Piwigo.Client.Session; public class SessionApi : ISessionApi { diff --git a/src/Piwigo.Client/Contract/SessionStatus.cs b/src/Piwigo.Client/Session/SessionStatus.cs similarity index 96% rename from src/Piwigo.Client/Contract/SessionStatus.cs rename to src/Piwigo.Client/Session/SessionStatus.cs index 37eff20..ed20461 100644 --- a/src/Piwigo.Client/Contract/SessionStatus.cs +++ b/src/Piwigo.Client/Session/SessionStatus.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Piwigo.Client.Contract; +namespace Piwigo.Client.Session; public record SessionStatus { diff --git a/src/Piwigo.Client/Tags/ITagApi.cs b/src/Piwigo.Client/Tags/ITagApi.cs new file mode 100644 index 0000000..9eeb9e2 --- /dev/null +++ b/src/Piwigo.Client/Tags/ITagApi.cs @@ -0,0 +1,5 @@ +namespace Piwigo.Client.Tags; + +public interface ITagApi +{ +} \ No newline at end of file diff --git a/src/Piwigo.Client/TagApi.cs b/src/Piwigo.Client/Tags/TagApi.cs similarity index 53% rename from src/Piwigo.Client/TagApi.cs rename to src/Piwigo.Client/Tags/TagApi.cs index ff0ebb0..dae0886 100644 --- a/src/Piwigo.Client/TagApi.cs +++ b/src/Piwigo.Client/Tags/TagApi.cs @@ -1,4 +1,4 @@ -namespace Piwigo.Client; +namespace Piwigo.Client.Tags; public class TagApi : ITagApi {