Class IdenticonsClient
Inheritance
System.Object
IdenticonsClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dangl.Icons.Client
Assembly: Dangl.Icons.Client.dll
Syntax
public class IdenticonsClient
Constructors
| Improve this Doc View SourceIdenticonsClient(HttpClient)
Declaration
public IdenticonsClient(HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpClient | httpClient |
Properties
| Improve this Doc View SourceJsonSerializerSettings
Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings |
Methods
| Improve this Doc View SourceGetIdenticonByIdAsync(Guid, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)
Declaration
public Task<FileResponse> GetIdenticonByIdAsync(Guid identiconId, int? size, bool? useSingleColor, bool? useMaterialColors, bool? useExtendedBlockConfigurator)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | identiconId | |
System.Nullable<System.Int32> | size | |
System.Nullable<System.Boolean> | useSingleColor | |
System.Nullable<System.Boolean> | useMaterialColors | |
System.Nullable<System.Boolean> | useExtendedBlockConfigurator |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FileResponse> |
Exceptions
Type | Condition |
---|---|
SwaggerException | A server side error occurred. |
GetIdenticonByIdAsync(Guid, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken)
Declaration
public Task<FileResponse> GetIdenticonByIdAsync(Guid identiconId, int? size, bool? useSingleColor, bool? useMaterialColors, bool? useExtendedBlockConfigurator, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | identiconId | |
System.Nullable<System.Int32> | size | |
System.Nullable<System.Boolean> | useSingleColor | |
System.Nullable<System.Boolean> | useMaterialColors | |
System.Nullable<System.Boolean> | useExtendedBlockConfigurator | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FileResponse> |
Exceptions
Type | Condition |
---|---|
SwaggerException | A server side error occurred. |
UploadIconAsync(FileParameter)
Declaration
public Task<GetIconGenerationResult> UploadIconAsync(FileParameter iconFile)
Parameters
Type | Name | Description |
---|---|---|
FileParameter | iconFile |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<GetIconGenerationResult> |
Exceptions
Type | Condition |
---|---|
SwaggerException | A server side error occurred. |
UploadIconAsync(FileParameter, CancellationToken)
Declaration
public Task<GetIconGenerationResult> UploadIconAsync(FileParameter iconFile, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
FileParameter | iconFile | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<GetIconGenerationResult> |
Exceptions
Type | Condition |
---|---|
SwaggerException | A server side error occurred. |