feat: Modelle für die Antwort auf die Dokumentenerstellung in DocumentsRouteService hinzugefügt
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
namespace WindreamHub.Legacy.Client.Models.Authentication
|
using WindreamHub.Legacy.Client.Models.Shared;
|
||||||
|
|
||||||
|
namespace WindreamHub.Legacy.Client.Models.Authentication
|
||||||
{
|
{
|
||||||
public class ErrorDetails
|
public class ErrorDetails
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace WindreamHub.Legacy.Client.Models.Documents.Request
|
namespace WindreamHub.Legacy.Client.Models.Documents.Request
|
||||||
{
|
{
|
||||||
public class DocumentCreationBody
|
public class DocCreateBody
|
||||||
{
|
{
|
||||||
public Item Item { get; set; }
|
public Item Item { get; set; }
|
||||||
public bool CreateFolder { get; set; }
|
public bool CreateFolder { get; set; }
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class Attribute
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string DisplayName { get; set; }
|
||||||
|
public object Value { get; set; }
|
||||||
|
public int Type { get; set; }
|
||||||
|
public int UnderlyingType { get; set; }
|
||||||
|
public string Column { get; set; }
|
||||||
|
public bool IsSystem { get; set; }
|
||||||
|
public bool IsSortable { get; set; }
|
||||||
|
public VectorDetails VectorDetails { get; set; }
|
||||||
|
public TypeSpecificDetails TypeSpecificDetails { get; set; }
|
||||||
|
public int MaxSize { get; set; }
|
||||||
|
public bool AlwaysModifiable { get; set; }
|
||||||
|
public int PreDigits { get; set; }
|
||||||
|
public int PostDigits { get; set; }
|
||||||
|
public bool IsFulltext { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class DocCreatResponse
|
||||||
|
{
|
||||||
|
public Item Item { get; set; }
|
||||||
|
public IndexingDetails IndexingDetails { get; set; }
|
||||||
|
public Error Error { get; set; }
|
||||||
|
public List<Error> Errors { get; set; }
|
||||||
|
public bool HasErrors { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using WindreamHub.Legacy.Client.Models.Shared;
|
||||||
|
|
||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class Error
|
||||||
|
{
|
||||||
|
public ErrorItem Item { get; set; }
|
||||||
|
public string Message { get; set; }
|
||||||
|
public int ErrorCode { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class IndexingDetails
|
||||||
|
{
|
||||||
|
public bool IndexEventRequired { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class Item
|
||||||
|
{
|
||||||
|
public List<Attribute> Attributes { get; set; }
|
||||||
|
public ObjectType ObjectType { get; set; }
|
||||||
|
public ParentWindreamObject ParentWindreamObject { get; set; }
|
||||||
|
public int Entity { get; set; }
|
||||||
|
public string LocationComplete { get; set; }
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string Location { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class ObjectType
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class ParentWindreamObject
|
||||||
|
{
|
||||||
|
public string LocationComplete { get; set; }
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string Location { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class TypeSpecificDetails
|
||||||
|
{
|
||||||
|
public bool OnceEditable { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
||||||
|
{
|
||||||
|
public class VectorDetails
|
||||||
|
{
|
||||||
|
public int EntriesLimit { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace WindreamHub.Legacy.Client.Models.Authentication
|
namespace WindreamHub.Legacy.Client.Models.Shared
|
||||||
{
|
{
|
||||||
public class ErrorItem
|
public class ErrorItem
|
||||||
{
|
{
|
||||||
@@ -84,14 +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\Authentication\ErrorItem.cs" />
|
<Compile Include="Models\Documents\Response\Error.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\Request\Attribute.cs" />
|
||||||
<Compile Include="Models\Documents\Request\Item.cs" />
|
<Compile Include="Models\Documents\Request\Item.cs" />
|
||||||
<Compile Include="Models\Documents\Request\ObjectType.cs" />
|
<Compile Include="Models\Documents\Request\ObjectType.cs" />
|
||||||
<Compile Include="Models\Documents\Request\DocumentCreationBody.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\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" />
|
||||||
@@ -116,8 +125,6 @@
|
|||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup />
|
||||||
<Folder Include="Models\Documents\Response\" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user