-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1,328 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/CleanAspire.Application/Common/Interfaces/IUploadService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.ComponentModel; | ||
|
||
namespace CleanAspire.Application.Common.Interfaces; | ||
|
||
public interface IUploadService | ||
{ | ||
Task<string> UploadAsync(UploadRequest request); | ||
void Remove(string filename); | ||
} | ||
public record UploadRequest( | ||
string FileName, | ||
UploadType UploadType, | ||
byte[] Data, | ||
bool Overwrite = false, | ||
string? Extension = null, | ||
string? Folder = null | ||
); | ||
public enum UploadType : byte | ||
{ | ||
[Description(@"Products")] Product, | ||
[Description(@"ProfilePictures")] ProfilePicture, | ||
[Description(@"Documents")] Document | ||
} |
47 changes: 47 additions & 0 deletions
47
src/CleanAspire.ClientApp/Client/Account/AccountRequestBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// <auto-generated/> | ||
#pragma warning disable CS0618 | ||
using CleanAspire.Api.Client.Account.ConfirmEmail; | ||
using CleanAspire.Api.Client.Account.Signup; | ||
using Microsoft.Kiota.Abstractions.Extensions; | ||
using Microsoft.Kiota.Abstractions; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Threading.Tasks; | ||
using System; | ||
namespace CleanAspire.Api.Client.Account | ||
{ | ||
/// <summary> | ||
/// Builds and executes requests for operations under \account | ||
/// </summary> | ||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] | ||
public partial class AccountRequestBuilder : BaseRequestBuilder | ||
{ | ||
/// <summary>The confirmEmail property</summary> | ||
public global::CleanAspire.Api.Client.Account.ConfirmEmail.ConfirmEmailRequestBuilder ConfirmEmail | ||
{ | ||
get => new global::CleanAspire.Api.Client.Account.ConfirmEmail.ConfirmEmailRequestBuilder(PathParameters, RequestAdapter); | ||
} | ||
/// <summary>The signup property</summary> | ||
public global::CleanAspire.Api.Client.Account.Signup.SignupRequestBuilder Signup | ||
{ | ||
get => new global::CleanAspire.Api.Client.Account.Signup.SignupRequestBuilder(PathParameters, RequestAdapter); | ||
} | ||
/// <summary> | ||
/// Instantiates a new <see cref="global::CleanAspire.Api.Client.Account.AccountRequestBuilder"/> and sets the default values. | ||
/// </summary> | ||
/// <param name="pathParameters">Path parameters for the request</param> | ||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param> | ||
public AccountRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/account", pathParameters) | ||
{ | ||
} | ||
/// <summary> | ||
/// Instantiates a new <see cref="global::CleanAspire.Api.Client.Account.AccountRequestBuilder"/> and sets the default values. | ||
/// </summary> | ||
/// <param name="rawUrl">The raw URL to use for the request builder.</param> | ||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param> | ||
public AccountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/account", rawUrl) | ||
{ | ||
} | ||
} | ||
} | ||
#pragma warning restore CS0618 |
Oops, something went wrong.