refactor: Dokumenterstellungs-Modelle in den Create-Ordner verschoben
This commit is contained in:
parent
39e78821cf
commit
e8cffa5fa0
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Request
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Request
|
||||
{
|
||||
public class Attribute
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Request
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Request
|
||||
{
|
||||
public class DocCreateBody
|
||||
{
|
||||
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Request
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Request
|
||||
{
|
||||
public class Item
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Request
|
||||
{
|
||||
public class ObjectType
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
|
||||
{
|
||||
public class Attribute
|
||||
{
|
||||
@ -1,8 +1,8 @@
|
||||
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 IndexingDetails IndexingDetails { get; set; }
|
||||
@ -1,6 +1,6 @@
|
||||
using WindreamHub.Legacy.Client.Models.Shared;
|
||||
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
|
||||
{
|
||||
public class Error
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
|
||||
{
|
||||
public class IndexingDetails
|
||||
{
|
||||
@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
|
||||
{
|
||||
public class Item
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Request
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
|
||||
{
|
||||
public class ObjectType
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
|
||||
{
|
||||
public class ParentWindreamObject
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
|
||||
{
|
||||
public class TypeSpecificDetails
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Create.Response
|
||||
{
|
||||
public class VectorDetails
|
||||
{
|
||||
@ -4,8 +4,8 @@ using System.Net.Http;
|
||||
using DigitalData.Core.Legacy.Client;
|
||||
using System.Threading.Tasks;
|
||||
using WindreamHub.Legacy.Client.Models;
|
||||
using WindreamHub.Legacy.Client.Models.Documents.Response;
|
||||
using WindreamHub.Legacy.Client.Models.Documents.Request;
|
||||
using WindreamHub.Legacy.Client.Models.Documents.Create.Response;
|
||||
using WindreamHub.Legacy.Client.Models.Documents.Create.Request;
|
||||
|
||||
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)
|
||||
.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())
|
||||
.ThenAsync(res => res.Simplify<DocCreatResponse, object>());
|
||||
.ThenAsync(res => res.Simplify<DocCreateResponse, object>());
|
||||
}
|
||||
}
|
||||
@ -84,23 +84,23 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="DIExtensions.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\Authentication\ICredential.cs" />
|
||||
<Compile Include="Models\Authentication\ValidationResponse.cs" />
|
||||
<Compile Include="Models\Authentication\Base64Credential.cs" />
|
||||
<Compile Include="Models\Documents\Request\Attribute.cs" />
|
||||
<Compile Include="Models\Documents\Request\Item.cs" />
|
||||
<Compile Include="Models\Documents\Request\ObjectType.cs" />
|
||||
<Compile Include="Models\Documents\Request\DocCreateBody.cs" />
|
||||
<Compile Include="Models\Documents\Response\Attribute.cs" />
|
||||
<Compile Include="Models\Documents\Response\DocCreatResponse.cs" />
|
||||
<Compile Include="Models\Documents\Response\IndexingDetails.cs" />
|
||||
<Compile Include="Models\Documents\Response\Item.cs" />
|
||||
<Compile Include="Models\Documents\Response\ObjectType.cs" />
|
||||
<Compile Include="Models\Documents\Response\ParentWindreamObject.cs" />
|
||||
<Compile Include="Models\Documents\Response\TypeSpecificDetails.cs" />
|
||||
<Compile Include="Models\Documents\Response\VectorDetails.cs" />
|
||||
<Compile Include="Models\Documents\Create\Request\Attribute.cs" />
|
||||
<Compile Include="Models\Documents\Create\Request\Item.cs" />
|
||||
<Compile Include="Models\Documents\Create\Request\ObjectType.cs" />
|
||||
<Compile Include="Models\Documents\Create\Request\DocCreateBody.cs" />
|
||||
<Compile Include="Models\Documents\Create\Response\Attribute.cs" />
|
||||
<Compile Include="Models\Documents\Create\Response\DocCreateResponse.cs" />
|
||||
<Compile Include="Models\Documents\Create\Response\IndexingDetails.cs" />
|
||||
<Compile Include="Models\Documents\Create\Response\Item.cs" />
|
||||
<Compile Include="Models\Documents\Create\Response\ObjectType.cs" />
|
||||
<Compile Include="Models\Documents\Create\Response\ParentWindreamObject.cs" />
|
||||
<Compile Include="Models\Documents\Create\Response\TypeSpecificDetails.cs" />
|
||||
<Compile Include="Models\Documents\Create\Response\VectorDetails.cs" />
|
||||
<Compile Include="Models\ModelExtensions.cs" />
|
||||
<Compile Include="Models\SimplifiedResponse.cs" />
|
||||
<Compile Include="Models\SystemDetails\SystemDetails.cs" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user