refactor: Dokumenterstellungs-Modelle in den Create-Ordner verschoben

This commit is contained in:
Developer 02 2024-09-13 00:55:06 +02:00
parent 39e78821cf
commit e8cffa5fa0
15 changed files with 33 additions and 33 deletions

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Request namespace WindreamHub.Legacy.Client.Models.Documents.Create.Request
{ {
public class Attribute public class Attribute
{ {

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Request namespace WindreamHub.Legacy.Client.Models.Documents.Create.Request
{ {
public class DocCreateBody public class DocCreateBody
{ {

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace WindreamHub.Legacy.Client.Models.Documents.Request namespace WindreamHub.Legacy.Client.Models.Documents.Create.Request
{ {
public class Item public class Item
{ {

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Request
{ {
public class ObjectType public class ObjectType
{ {

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class Attribute public class Attribute
{ {

View File

@ -1,8 +1,8 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class DocCreatResponse public class DocCreateResponse
{ {
public Item Item { get; set; } public Item Item { get; set; }
public IndexingDetails IndexingDetails { get; set; } public IndexingDetails IndexingDetails { get; set; }

View File

@ -1,6 +1,6 @@
using WindreamHub.Legacy.Client.Models.Shared; using WindreamHub.Legacy.Client.Models.Shared;
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class Error public class Error
{ {

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class IndexingDetails public class IndexingDetails
{ {

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class Item public class Item
{ {

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Request namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class ObjectType public class ObjectType
{ {

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class ParentWindreamObject public class ParentWindreamObject
{ {

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class TypeSpecificDetails public class TypeSpecificDetails
{ {

View File

@ -1,4 +1,4 @@
namespace WindreamHub.Legacy.Client.Models.Documents.Response namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
{ {
public class VectorDetails public class VectorDetails
{ {

View File

@ -4,8 +4,8 @@ using System.Net.Http;
using DigitalData.Core.Legacy.Client; using DigitalData.Core.Legacy.Client;
using System.Threading.Tasks; using System.Threading.Tasks;
using WindreamHub.Legacy.Client.Models; using WindreamHub.Legacy.Client.Models;
using WindreamHub.Legacy.Client.Models.Documents.Response; using WindreamHub.Legacy.Client.Models.Documents.Create.Response;
using WindreamHub.Legacy.Client.Models.Documents.Request; using WindreamHub.Legacy.Client.Models.Documents.Create.Request;
namespace WindreamHub.Legacy.Client.Routes namespace WindreamHub.Legacy.Client.Routes
{ {
@ -15,12 +15,12 @@ namespace WindreamHub.Legacy.Client.Routes
{ {
} }
public async Task<SimplifiedResponse<DocCreatResponse, object>> Create(HttpContent docCreateBody) public async Task<SimplifiedResponse<DocCreateResponse, object>> Create(HttpContent docCreateBody)
=> await FetchAsync(route: "/Create", method: HttpMethod.Post, body: docCreateBody) => await FetchAsync(route: "/Create", method: HttpMethod.Post, body: docCreateBody)
.ThenAsync(res => res.Simplify<DocCreatResponse, object>()); .ThenAsync(res => res.Simplify<DocCreateResponse, object>());
public async Task<SimplifiedResponse<DocCreatResponse, object>> Create(DocCreateBody docCreateBody) public async Task<SimplifiedResponse<DocCreateResponse, object>> Create(DocCreateBody docCreateBody)
=> await FetchAsync(route: "/Create", method: HttpMethod.Post, body: docCreateBody.Stringify()) => await FetchAsync(route: "/Create", method: HttpMethod.Post, body: docCreateBody.Stringify())
.ThenAsync(res => res.Simplify<DocCreatResponse, object>()); .ThenAsync(res => res.Simplify<DocCreateResponse, object>());
} }
} }

View File

@ -84,23 +84,23 @@
<ItemGroup> <ItemGroup>
<Compile Include="DIExtensions.cs" /> <Compile Include="DIExtensions.cs" />
<Compile Include="Models\Authentication\ErrorDetails.cs" /> <Compile Include="Models\Authentication\ErrorDetails.cs" />
<Compile Include="Models\Documents\Response\Error.cs" /> <Compile Include="Models\Documents\Create\Response\Error.cs" />
<Compile Include="Models\Shared\ErrorItem.cs" /> <Compile Include="Models\Shared\ErrorItem.cs" />
<Compile Include="Models\Authentication\ICredential.cs" /> <Compile Include="Models\Authentication\ICredential.cs" />
<Compile Include="Models\Authentication\ValidationResponse.cs" /> <Compile Include="Models\Authentication\ValidationResponse.cs" />
<Compile Include="Models\Authentication\Base64Credential.cs" /> <Compile Include="Models\Authentication\Base64Credential.cs" />
<Compile Include="Models\Documents\Request\Attribute.cs" /> <Compile Include="Models\Documents\Create\Request\Attribute.cs" />
<Compile Include="Models\Documents\Request\Item.cs" /> <Compile Include="Models\Documents\Create\Request\Item.cs" />
<Compile Include="Models\Documents\Request\ObjectType.cs" /> <Compile Include="Models\Documents\Create\Request\ObjectType.cs" />
<Compile Include="Models\Documents\Request\DocCreateBody.cs" /> <Compile Include="Models\Documents\Create\Request\DocCreateBody.cs" />
<Compile Include="Models\Documents\Response\Attribute.cs" /> <Compile Include="Models\Documents\Create\Response\Attribute.cs" />
<Compile Include="Models\Documents\Response\DocCreatResponse.cs" /> <Compile Include="Models\Documents\Create\Response\DocCreateResponse.cs" />
<Compile Include="Models\Documents\Response\IndexingDetails.cs" /> <Compile Include="Models\Documents\Create\Response\IndexingDetails.cs" />
<Compile Include="Models\Documents\Response\Item.cs" /> <Compile Include="Models\Documents\Create\Response\Item.cs" />
<Compile Include="Models\Documents\Response\ObjectType.cs" /> <Compile Include="Models\Documents\Create\Response\ObjectType.cs" />
<Compile Include="Models\Documents\Response\ParentWindreamObject.cs" /> <Compile Include="Models\Documents\Create\Response\ParentWindreamObject.cs" />
<Compile Include="Models\Documents\Response\TypeSpecificDetails.cs" /> <Compile Include="Models\Documents\Create\Response\TypeSpecificDetails.cs" />
<Compile Include="Models\Documents\Response\VectorDetails.cs" /> <Compile Include="Models\Documents\Create\Response\VectorDetails.cs" />
<Compile Include="Models\ModelExtensions.cs" /> <Compile Include="Models\ModelExtensions.cs" />
<Compile Include="Models\SimplifiedResponse.cs" /> <Compile Include="Models\SimplifiedResponse.cs" />
<Compile Include="Models\SystemDetails\SystemDetails.cs" /> <Compile Include="Models\SystemDetails\SystemDetails.cs" />