Interface IPartnerAgentCentralHeatingTypes
Represents the interface for central heating type-related operations in the Partner Agent API client.
Namespace: PAccess.PartnerAgents.ApiClient.Services.CentralHeatingTypes
Assembly: PAccess.PartnerAgents.ApiClient.dll
Syntax
public interface IPartnerAgentCentralHeatingTypes
Methods
View SourceGetAllAsync(CancellationToken)
Retrieves all central heating types asynchronously.
Declaration
Task<IReadOnlyList<CentralHeatingType>> GetAllAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<CentralHeatingType>> | A task representing the asynchronous operation that returns the list of all central heating types. |
GetByIdAsync(int, CancellationToken)
Retrieves a central heating type by ID asynchronously.
Declaration
Task<CentralHeatingType?> GetByIdAsync(int id, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The ID of the central heating type. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<CentralHeatingType> | A task representing the asynchronous operation that returns the central heating type with the specified ID. |