Interface IPartnerAgentViewings
Represents the interface for viewing-related operations in the Partner Agent API client.
Namespace: PAccess.PartnerAgents.ApiClient.Services.Viewings
Assembly: PAccess.PartnerAgents.ApiClient.dll
Syntax
public interface IPartnerAgentViewings
Methods
View SourceAddViewingFeedbackAsync(AddViewingFeedbackRequest, CancellationToken)
Adds viewing feedback asynchronously.
Declaration
Task<AddViewingFeedbackResponse> AddViewingFeedbackAsync(AddViewingFeedbackRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AddViewingFeedbackRequest | request | The request object containing the details of the viewing feedback addition. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<AddViewingFeedbackResponse> | A task representing the asynchronous operation that returns the response of the viewing feedback addition. |
CancelViewingAsync(CancelViewingRequest, CancellationToken)
Cancels a viewing asynchronously.
Declaration
Task<CancelViewingResponse> CancelViewingAsync(CancelViewingRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancelViewingRequest | request | The request object containing the details of the viewing cancellation. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<CancelViewingResponse> | A task representing the asynchronous operation that returns the response of the viewing cancellation. |
CreateViewingAsync(CreateViewingRequest, CancellationToken)
Creates a viewing asynchronously.
Declaration
Task<CreateViewingResponse> CreateViewingAsync(CreateViewingRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateViewingRequest | request | The request object containing the details of the viewing creation. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<CreateViewingResponse> | A task representing the asynchronous operation that returns the response of the viewing creation. |
GetPropertyViewingsAsync(int, CancellationToken)
Retrieves the viewings asynchronously.
Declaration
Task<IReadOnlyList<ViewingDetails>> GetPropertyViewingsAsync(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<IReadOnlyList<ViewingDetails>> | A task representing the asynchronous operation that returns the list of viewings. |
RescheduleViewingAsync(RescheduleViewingRequest, CancellationToken)
Reschedules a viewing asynchronously.
Declaration
Task<RescheduleViewingResponse> RescheduleViewingAsync(RescheduleViewingRequest request, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| RescheduleViewingRequest | request | The request object containing the details of the viewing rescheduling. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<RescheduleViewingResponse> | A task representing the asynchronous operation that returns the response of the viewing rescheduling. |