refactor: DocCreateBody in DocBody umbenannt
- `DocCreateBody` in `DocBody` umbenannt, um den Code einfacher und klarer zu gestalten.
This commit is contained in:
parent
dc0cfd6010
commit
b1834c3417
@ -1,6 +1,6 @@
|
||||
namespace WindreamHub.Legacy.Client.Models.Documents.Request
|
||||
{
|
||||
public class DocCreateBody
|
||||
public class DocBody
|
||||
{
|
||||
public Item Item { get; set; }
|
||||
public bool? CreateFolder { get; set; }
|
||||
@ -23,7 +23,7 @@ namespace WindreamHub.Legacy.Client.Routes
|
||||
=> await FetchAsync(route: "/Create", method: HttpMethod.Post, body: docCreateBody)
|
||||
.ThenAsync(res => res.Simplify<DocResponse, DocResponse>());
|
||||
|
||||
public async Task<SimplifiedResponse<DocResponse, DocResponse>> Create(DocCreateBody docCreateBody)
|
||||
public async Task<SimplifiedResponse<DocResponse, DocResponse>> Create(DocBody docCreateBody)
|
||||
=> await FetchAsync(route: "/Create", method: HttpMethod.Post, body: docCreateBody.Stringify())
|
||||
.ThenAsync(res => res.Simplify<DocResponse, DocResponse>());
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
<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\Request\DocBody.cs" />
|
||||
<Compile Include="Models\Documents\Response\Attribute.cs" />
|
||||
<Compile Include="Models\Documents\Response\DocResponse.cs" />
|
||||
<Compile Include="Models\Documents\Response\IndexingDetails.cs" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user