Listing property viewings
In order to list the viewings for a property, you'll need to use the Viewings.GetPropertyViewingsAsync method on the API client:
var viewings = await client.Viewings.GetPropertyViewingsAsync(12345);
The above example will return the viewings for the property with ID 12345.
If the property doesn't exist, or you don't have access to it, a null value will be returned.
The response will be a readonly list of ViewingDetails, and will contain the following properties:
Id
- Type:
int - Description: Gets or sets the ID of the viewing.
- Type:
PropertyId
- Type:
int - Description: Gets or sets the ID of the property associated with the viewing.
- Type:
CustomerId
- Type:
int - Description: Gets or sets the ID of the customer associated with the viewing.
- Type:
Date
- Type:
DateTime - Description: Gets or sets the date of the viewing.
- Type:
From
- Type:
TimeSpan - Description: Gets or sets the start time of the viewing.
- Type:
To
- Type:
TimeSpan - Description: Gets or sets the end time of the viewing.
- Type:
Cancelled
- Type:
bool - Description: Gets or sets a value indicating whether the viewing is cancelled.
- Type:
Feedback
- Type:
string? - Description: Gets or sets the feedback provided for the viewing.
- Type: