Class ConsentControllerApi
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public class ConsentControllerApi : IConsentControllerApi, IConsentControllerApiSync, IConsentControllerApiAsync, IApiAccessor
Constructors
View SourceConsentControllerApi()
Initializes a new instance of the ConsentControllerApi class.
Declaration
public ConsentControllerApi()
ConsentControllerApi(string)
Initializes a new instance of the ConsentControllerApi class.
Declaration
public ConsentControllerApi(string basePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | basePath |
ConsentControllerApi(Configuration)
Initializes a new instance of the ConsentControllerApi class using Configuration object
Declaration
public ConsentControllerApi(Configuration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| Configuration | configuration | An instance of Configuration |
ConsentControllerApi(ISynchronousClient, IAsynchronousClient, IReadableConfiguration)
Initializes a new instance of the ConsentControllerApi class using a Configuration object and client instance.
Declaration
public ConsentControllerApi(ISynchronousClient client, IAsynchronousClient asyncClient, IReadableConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ISynchronousClient | client | The client interface for synchronous API access. |
| IAsynchronousClient | asyncClient | The client interface for asynchronous API access. |
| IReadableConfiguration | configuration | The configuration object. |
Properties
View SourceAsynchronousClient
The client for accessing this underlying API asynchronously.
Declaration
public IAsynchronousClient AsynchronousClient { get; set; }
Property Value
| Type | Description |
|---|---|
| IAsynchronousClient |
Client
The client for accessing this underlying API synchronously.
Declaration
public ISynchronousClient Client { get; set; }
Property Value
| Type | Description |
|---|---|
| ISynchronousClient |
Configuration
Gets or sets the configuration object
Declaration
public IReadableConfiguration Configuration { get; set; }
Property Value
| Type | Description |
|---|---|
| IReadableConfiguration | An instance of the Configuration |
ExceptionFactory
Provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
| Type | Description |
|---|---|
| ExceptionFactory |
Methods
View SourceCheckSendingConsentForEmailAddress(string, int)
Declaration
public OptInSendingConsentDto CheckSendingConsentForEmailAddress(string emailAddress, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | emailAddress | Email address to check consent for |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| OptInSendingConsentDto | OptInSendingConsentDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CheckSendingConsentForEmailAddressAsync(string, int, CancellationToken)
Declaration
public Task<OptInSendingConsentDto> CheckSendingConsentForEmailAddressAsync(string emailAddress, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | emailAddress | Email address to check consent for |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<OptInSendingConsentDto> | Task of OptInSendingConsentDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CheckSendingConsentForEmailAddressWithHttpInfo(string, int)
Declaration
public ApiResponse<OptInSendingConsentDto> CheckSendingConsentForEmailAddressWithHttpInfo(string emailAddress, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | emailAddress | Email address to check consent for |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<OptInSendingConsentDto> | ApiResponse of OptInSendingConsentDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CheckSendingConsentForEmailAddressWithHttpInfoAsync(string, int, CancellationToken)
Declaration
public Task<ApiResponse<OptInSendingConsentDto>> CheckSendingConsentForEmailAddressWithHttpInfoAsync(string emailAddress, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | emailAddress | Email address to check consent for |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<OptInSendingConsentDto>> | Task of ApiResponse (OptInSendingConsentDto) |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
| Type | Description |
|---|---|
| string | The base path |
GetOptInIdentities(int?, int?, string, int)
Declaration
public PageOptInIdentityProjection GetOptInIdentities(int? page = null, int? size = null, string sort = null, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | Optional page index in list pagination (optional, default to 0) |
| int? | size | Optional page size in list pagination (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| PageOptInIdentityProjection | PageOptInIdentityProjection |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetOptInIdentitiesAsync(int?, int?, string, int, CancellationToken)
Declaration
public Task<PageOptInIdentityProjection> GetOptInIdentitiesAsync(int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | Optional page index in list pagination (optional, default to 0) |
| int? | size | Optional page size in list pagination (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<PageOptInIdentityProjection> | Task of PageOptInIdentityProjection |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetOptInIdentitiesWithHttpInfo(int?, int?, string, int)
Declaration
public ApiResponse<PageOptInIdentityProjection> GetOptInIdentitiesWithHttpInfo(int? page = null, int? size = null, string sort = null, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | Optional page index in list pagination (optional, default to 0) |
| int? | size | Optional page size in list pagination (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<PageOptInIdentityProjection> | ApiResponse of PageOptInIdentityProjection |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetOptInIdentitiesWithHttpInfoAsync(int?, int?, string, int, CancellationToken)
Declaration
public Task<ApiResponse<PageOptInIdentityProjection>> GetOptInIdentitiesWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | page | Optional page index in list pagination (optional, default to 0) |
| int? | size | Optional page size in list pagination (optional, default to 20) |
| string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<PageOptInIdentityProjection>> | Task of ApiResponse (PageOptInIdentityProjection) |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
RevokeOptInConsentForEmailAddress(string, int)
Declaration
public OptInSendingConsentDto RevokeOptInConsentForEmailAddress(string emailAddress, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | emailAddress | Email address to revoke consent for |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| OptInSendingConsentDto | OptInSendingConsentDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
RevokeOptInConsentForEmailAddressAsync(string, int, CancellationToken)
Declaration
public Task<OptInSendingConsentDto> RevokeOptInConsentForEmailAddressAsync(string emailAddress, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | emailAddress | Email address to revoke consent for |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<OptInSendingConsentDto> | Task of OptInSendingConsentDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
RevokeOptInConsentForEmailAddressWithHttpInfo(string, int)
Declaration
public ApiResponse<OptInSendingConsentDto> RevokeOptInConsentForEmailAddressWithHttpInfo(string emailAddress, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | emailAddress | Email address to revoke consent for |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<OptInSendingConsentDto> | ApiResponse of OptInSendingConsentDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
RevokeOptInConsentForEmailAddressWithHttpInfoAsync(string, int, CancellationToken)
Declaration
public Task<ApiResponse<OptInSendingConsentDto>> RevokeOptInConsentForEmailAddressWithHttpInfoAsync(string emailAddress, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | emailAddress | Email address to revoke consent for |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<OptInSendingConsentDto>> | Task of ApiResponse (OptInSendingConsentDto) |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SendOptInConsentForEmailAddress(OptInConsentOptions, int)
Send a verification code to a user once they have explicitly submitted their email address Send double-opt in consent for an email address
Declaration
public OptInConsentSendResult SendOptInConsentForEmailAddress(OptInConsentOptions optInConsentOptions, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| OptInConsentOptions | optInConsentOptions | |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| OptInConsentSendResult | OptInConsentSendResult |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SendOptInConsentForEmailAddressAsync(OptInConsentOptions, int, CancellationToken)
Send a verification code to a user once they have explicitly submitted their email address Send double-opt in consent for an email address
Declaration
public Task<OptInConsentSendResult> SendOptInConsentForEmailAddressAsync(OptInConsentOptions optInConsentOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| OptInConsentOptions | optInConsentOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<OptInConsentSendResult> | Task of OptInConsentSendResult |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SendOptInConsentForEmailAddressWithHttpInfo(OptInConsentOptions, int)
Send a verification code to a user once they have explicitly submitted their email address Send double-opt in consent for an email address
Declaration
public ApiResponse<OptInConsentSendResult> SendOptInConsentForEmailAddressWithHttpInfo(OptInConsentOptions optInConsentOptions, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| OptInConsentOptions | optInConsentOptions | |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<OptInConsentSendResult> | ApiResponse of OptInConsentSendResult |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SendOptInConsentForEmailAddressWithHttpInfoAsync(OptInConsentOptions, int, CancellationToken)
Send a verification code to a user once they have explicitly submitted their email address Send double-opt in consent for an email address
Declaration
public Task<ApiResponse<OptInConsentSendResult>> SendOptInConsentForEmailAddressWithHttpInfoAsync(OptInConsentOptions optInConsentOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| OptInConsentOptions | optInConsentOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<OptInConsentSendResult>> | Task of ApiResponse (OptInConsentSendResult) |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |