From 987cecba4c1b96fce3eddf84f546e81b215a2774 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 12 Sep 2024 21:38:41 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Modelle=20f=C3=BCr=20Dokumentenerstellu?= =?UTF-8?q?ngsanfragen=20in=20DocumentsRouteService=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `Attribute`, `DocumentCreationBody`, `Item` und `ObjectType` Modelle für die Dokumentenerstellungsanfrage hinzugefügt. - Diese Modelle werden zur Erstellung von Dokumentenanfragen mit spezifischen Attributen und Details verwendet. --- .../Models/Documents/Request/Attribute.cs | 8 ++++++++ .../Documents/Request/DocumentCreationBody.cs | 9 +++++++++ .../Models/Documents/Request/Item.cs | 13 +++++++++++++ .../Models/Documents/Request/ObjectType.cs | 8 ++++++++ .../Routes/AuthenticationRouteService.cs | 1 - .../Routes/RouteExtensions.cs | 4 ---- .../WindreamHub.Legacy.Client.csproj | 7 +++++++ 7 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 src/WindreamHub.Legacy.Client/Models/Documents/Request/Attribute.cs create mode 100644 src/WindreamHub.Legacy.Client/Models/Documents/Request/DocumentCreationBody.cs create mode 100644 src/WindreamHub.Legacy.Client/Models/Documents/Request/Item.cs create mode 100644 src/WindreamHub.Legacy.Client/Models/Documents/Request/ObjectType.cs diff --git a/src/WindreamHub.Legacy.Client/Models/Documents/Request/Attribute.cs b/src/WindreamHub.Legacy.Client/Models/Documents/Request/Attribute.cs new file mode 100644 index 0000000..617c1e5 --- /dev/null +++ b/src/WindreamHub.Legacy.Client/Models/Documents/Request/Attribute.cs @@ -0,0 +1,8 @@ +namespace WindreamHub.Legacy.Client.Models.Documents.Request +{ + public class Attribute + { + public string Name { get; set; } + public object Value { get; set; } + } +} \ No newline at end of file diff --git a/src/WindreamHub.Legacy.Client/Models/Documents/Request/DocumentCreationBody.cs b/src/WindreamHub.Legacy.Client/Models/Documents/Request/DocumentCreationBody.cs new file mode 100644 index 0000000..b004912 --- /dev/null +++ b/src/WindreamHub.Legacy.Client/Models/Documents/Request/DocumentCreationBody.cs @@ -0,0 +1,9 @@ +namespace WindreamHub.Legacy.Client.Models.Documents.Request +{ + public class DocumentCreationBody + { + public Item Item { get; set; } + public bool CreateFolder { get; set; } + public int ResponseDetails { get; set; } + } +} \ No newline at end of file diff --git a/src/WindreamHub.Legacy.Client/Models/Documents/Request/Item.cs b/src/WindreamHub.Legacy.Client/Models/Documents/Request/Item.cs new file mode 100644 index 0000000..6596366 --- /dev/null +++ b/src/WindreamHub.Legacy.Client/Models/Documents/Request/Item.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace WindreamHub.Legacy.Client.Models.Documents.Request +{ + public class Item + { + public ObjectType ObjectType { get; set; } + public List Attributes { get; set; } + public string Location { get; set; } + public string Name { get; set; } + } +} \ No newline at end of file diff --git a/src/WindreamHub.Legacy.Client/Models/Documents/Request/ObjectType.cs b/src/WindreamHub.Legacy.Client/Models/Documents/Request/ObjectType.cs new file mode 100644 index 0000000..585bb05 --- /dev/null +++ b/src/WindreamHub.Legacy.Client/Models/Documents/Request/ObjectType.cs @@ -0,0 +1,8 @@ +namespace WindreamHub.Legacy.Client.Models.Documents.Request +{ + public class ObjectType + { + public int Id { get; set; } + public string Name { get; set; } + } +} \ No newline at end of file diff --git a/src/WindreamHub.Legacy.Client/Routes/AuthenticationRouteService.cs b/src/WindreamHub.Legacy.Client/Routes/AuthenticationRouteService.cs index 36670fe..ae3536d 100644 --- a/src/WindreamHub.Legacy.Client/Routes/AuthenticationRouteService.cs +++ b/src/WindreamHub.Legacy.Client/Routes/AuthenticationRouteService.cs @@ -2,7 +2,6 @@ using Microsoft.Extensions.Options; using System.Net; using System.Net.Http; -using System.Net.Http.Headers; using System.Threading.Tasks; using WindreamHub.Legacy.Client.Models; using WindreamHub.Legacy.Client.Models.Authentication; diff --git a/src/WindreamHub.Legacy.Client/Routes/RouteExtensions.cs b/src/WindreamHub.Legacy.Client/Routes/RouteExtensions.cs index 8d7dcaf..e877626 100644 --- a/src/WindreamHub.Legacy.Client/Routes/RouteExtensions.cs +++ b/src/WindreamHub.Legacy.Client/Routes/RouteExtensions.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace WindreamHub.Legacy.Client.Routes { diff --git a/src/WindreamHub.Legacy.Client/WindreamHub.Legacy.Client.csproj b/src/WindreamHub.Legacy.Client/WindreamHub.Legacy.Client.csproj index 4326fe6..70d0888 100644 --- a/src/WindreamHub.Legacy.Client/WindreamHub.Legacy.Client.csproj +++ b/src/WindreamHub.Legacy.Client/WindreamHub.Legacy.Client.csproj @@ -88,6 +88,10 @@ + + + + @@ -112,5 +116,8 @@ PreserveNewest + + + \ No newline at end of file