Interface IPartnerAgentProperties
Represents the interface for property-related operations in the Partner Agent API client.
Namespace: PAccess.PartnerAgents.ApiClient.Services.Properties
Assembly: PAccess.PartnerAgents.ApiClient.dll
Syntax
public interface IPartnerAgentProperties
Methods
View SourceGetPropertiesAsync(GetPropertiesRequest, CancellationToken)
Gets properties asynchronously. This list can be filtered by the properties available in the GetPropertiesRequest object.
Declaration
Task<IReadOnlyList<PropertySummary>> GetPropertiesAsync(GetPropertiesRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPropertiesRequest | request | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<PropertySummary>> | A task representing the asynchronous operation that returns the list of properties. |
GetPropertyDetailsAsync(int, CancellationToken)
Retrieves the details of a property asynchronously.
Declaration
Task<PropertyDetails> GetPropertyDetailsAsync(int id, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The ID of the property. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<PropertyDetails> | A task representing the asynchronous operation that returns the details of the property. |
ReferCommercialPropertyAsync(ReferCommercialPropertyRequest, CancellationToken)
Refers a commercial property asynchronously.
Declaration
Task<ReferPropertyResponse> ReferCommercialPropertyAsync(ReferCommercialPropertyRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ReferCommercialPropertyRequest | request | The request object containing the details of the commercial property referral. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<ReferPropertyResponse> | A task representing the asynchronous operation that returns the response of the commercial property referral. |
ReferResidentialPropertyAsync(ReferResidentialPropertyRequest, CancellationToken)
Refers a residential property asynchronously.
Declaration
Task<ReferPropertyResponse> ReferResidentialPropertyAsync(ReferResidentialPropertyRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ReferResidentialPropertyRequest | request | The request object containing the details of the residential property referral. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<ReferPropertyResponse> | A task representing the asynchronous operation that returns the response of the residential property referral. |