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