Interface IProfileClient
Namespace: System.Dynamic.ExpandoObject
Syntax
[GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public interface IProfileClient
Methods
GetAsync(CancellationToken)
Get
Declaration
Task<UserProfile> GetAsync(CancellationToken cancellationToken = default)
Parameters
Cancellation A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<User User profile |
Remarks
Get profile of currently logged in user.
Exceptions
Api A server side error occurred. |
Picturepark Validation exception |
Picturepark Forbidden |
Picturepark Entity not found |
Picturepark Version conflict |
Picturepark Too many requests |
Picturepark Internal server error |
RequestDeletionAsync(CancellationToken)
Request deletion
Declaration
Task RequestDeletionAsync(CancellationToken cancellationToken = default)
Parameters
Cancellation A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task
OK |
Remarks
Requests deletion of the current user profile.
Exceptions
Api A server side error occurred. |
Picturepark Validation exception |
Picturepark Forbidden |
Picturepark Entity not found |
Picturepark Version conflict |
Picturepark Too many requests |
Picturepark Internal server error |
UpdateAsync(UserProfileUpdateRequest, CancellationToken)
Update
Declaration
Task<UserProfile> UpdateAsync(UserProfileUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
User Request to update a user profile.. |
Cancellation A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Task<User Updated user profile |
Remarks
Updates profile of currently logged in user.
Exceptions
Api A server side error occurred. |
Picturepark Validation exception |
Picturepark Forbidden |
Picturepark Entity not found |
Picturepark Version conflict |
Picturepark Too many requests |
Picturepark Internal server error |