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