From bf92f31134d25c8d690a5c3592336f6676e484bc Mon Sep 17 00:00:00 2001 From: lodufour1 Date: Wed, 20 Sep 2023 18:18:34 +0200 Subject: [PATCH] =?UTF-8?q?Update=20(Back-End):=20d=C3=A9but=20patron=20mv?= =?UTF-8?q?vm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Schémas/Diagramme de class.drawio | 80 +++++++ Sources/BookApp.sln | 12 ++ Sources/BookApp/BookApp.csproj | 7 + .../Composants/CollectionFiltrage.xaml | 11 +- .../Composants/CollectionFiltrage.xaml.cs | 14 +- .../Composants/GroupCollection.xaml.cs | 5 +- Sources/BookApp/Data/Stub.cs | 198 ------------------ Sources/BookApp/MauiProgram.cs | 15 +- Sources/BookApp/Model/Auteur.cs | 15 -- Sources/BookApp/Model/Book.cs | 21 -- Sources/BookApp/Model/Person.cs | 14 -- Sources/BookApp/Model/Star.cs | 27 --- Sources/BookApp/Model/Status.cs | 15 -- Sources/BookApp/Pages/DetailBook.xaml | 2 +- Sources/BookApp/Pages/DetailBook.xaml.cs | 15 +- Sources/BookApp/Pages/Tous.xaml.cs | 2 +- Sources/BookApp/ViewModel/TousViewModel.cs | 71 ++++--- .../DtoAbstractLayer/DtoAbstractLayer.csproj | 4 + Sources/JsonReader/JsonReader.csproj | 1 + Sources/LibraryDTO/LibraryDTO.csproj | 3 + Sources/Model/Model.csproj | 4 + Sources/Stub/{Stub.cs => LibraryStub.cs} | 0 Sources/Stub/Stub.csproj | 4 + Sources/StubbedDTO/StubbedDTO.csproj | 3 + Sources/Tests/TestFrontEnd.csproj | 1 + Sources/Utils/Utils.csproj | 4 + Sources/VMWrapper/BookViewModel.cs | 32 +++ .../Platforms/Android/PlatformClass1.cs | 7 + .../Platforms/MacCatalyst/PlatformClass1.cs | 7 + .../Platforms/Tizen/PlatformClass1.cs | 9 + .../Platforms/Windows/PlatformClass1.cs | 7 + .../VMWrapper/Platforms/iOS/PlatformClass1.cs | 7 + Sources/VMWrapper/VMWrapper.csproj | 28 +++ 33 files changed, 306 insertions(+), 339 deletions(-) create mode 100644 Documentation/Schémas/Diagramme de class.drawio delete mode 100644 Sources/BookApp/Data/Stub.cs delete mode 100644 Sources/BookApp/Model/Auteur.cs delete mode 100644 Sources/BookApp/Model/Book.cs delete mode 100644 Sources/BookApp/Model/Person.cs delete mode 100644 Sources/BookApp/Model/Star.cs delete mode 100644 Sources/BookApp/Model/Status.cs rename Sources/Stub/{Stub.cs => LibraryStub.cs} (100%) create mode 100644 Sources/VMWrapper/BookViewModel.cs create mode 100644 Sources/VMWrapper/Platforms/Android/PlatformClass1.cs create mode 100644 Sources/VMWrapper/Platforms/MacCatalyst/PlatformClass1.cs create mode 100644 Sources/VMWrapper/Platforms/Tizen/PlatformClass1.cs create mode 100644 Sources/VMWrapper/Platforms/Windows/PlatformClass1.cs create mode 100644 Sources/VMWrapper/Platforms/iOS/PlatformClass1.cs create mode 100644 Sources/VMWrapper/VMWrapper.csproj diff --git a/Documentation/Schémas/Diagramme de class.drawio b/Documentation/Schémas/Diagramme de class.drawio new file mode 100644 index 0000000..2b0142f --- /dev/null +++ b/Documentation/Schémas/Diagramme de class.drawio @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sources/BookApp.sln b/Sources/BookApp.sln index e659e19..a312494 100644 --- a/Sources/BookApp.sln +++ b/Sources/BookApp.sln @@ -19,6 +19,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Utils", "Utils\Utils.csproj EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stub", "Stub\Stub.csproj", "{14ED7ADF-7B83-432E-A87B-40C153041067}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFrontEnd", "Tests\TestFrontEnd.csproj", "{945A6DB3-CB0A-4FB8-8117-64F0CB0D838A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VMWrapper", "VMWrapper\VMWrapper.csproj", "{377DC5AB-5D7C-4A29-ACED-C08B581A8E58}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -59,6 +63,14 @@ Global {14ED7ADF-7B83-432E-A87B-40C153041067}.Debug|Any CPU.Build.0 = Debug|Any CPU {14ED7ADF-7B83-432E-A87B-40C153041067}.Release|Any CPU.ActiveCfg = Release|Any CPU {14ED7ADF-7B83-432E-A87B-40C153041067}.Release|Any CPU.Build.0 = Release|Any CPU + {945A6DB3-CB0A-4FB8-8117-64F0CB0D838A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {945A6DB3-CB0A-4FB8-8117-64F0CB0D838A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {945A6DB3-CB0A-4FB8-8117-64F0CB0D838A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {945A6DB3-CB0A-4FB8-8117-64F0CB0D838A}.Release|Any CPU.Build.0 = Release|Any CPU + {377DC5AB-5D7C-4A29-ACED-C08B581A8E58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {377DC5AB-5D7C-4A29-ACED-C08B581A8E58}.Debug|Any CPU.Build.0 = Debug|Any CPU + {377DC5AB-5D7C-4A29-ACED-C08B581A8E58}.Release|Any CPU.ActiveCfg = Release|Any CPU + {377DC5AB-5D7C-4A29-ACED-C08B581A8E58}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Sources/BookApp/BookApp.csproj b/Sources/BookApp/BookApp.csproj index 9fa3b51..088bf6f 100644 --- a/Sources/BookApp/BookApp.csproj +++ b/Sources/BookApp/BookApp.csproj @@ -70,6 +70,13 @@ + + + + + + + diff --git a/Sources/BookApp/Composants/CollectionFiltrage.xaml b/Sources/BookApp/Composants/CollectionFiltrage.xaml index 0488b1a..9c62a76 100644 --- a/Sources/BookApp/Composants/CollectionFiltrage.xaml +++ b/Sources/BookApp/Composants/CollectionFiltrage.xaml @@ -2,10 +2,13 @@ - + - + @@ -19,8 +22,8 @@ -