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