Class PaginatedAddressClient
- Namespace
- Crews.PlanningCenter.Api.People.V2025_11_10
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with Address collection resources.
public class PaginatedAddressClient : PaginatedResourceClient<Address, AddressResource, AddressCollectionResponse, AddressResponse>
- Inheritance
-
PaginatedAddressClient
- Inherited Members
Constructors
PaginatedAddressClient(HttpClient, Uri)
Client for interacting with Address collection resources.
public PaginatedAddressClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of Address resources asynchronously.
public Task<AddressCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<AddressCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of Address resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
OrderByCity()
Sort response items by the City attribute.
public AddressClient OrderByCity()
Returns
OrderByCityDescending()
Sort response items by the City attribute. Use reverse order.
public AddressClient OrderByCityDescending()
Returns
OrderByCountryCode()
Sort response items by the CountryCode attribute.
public AddressClient OrderByCountryCode()
Returns
OrderByCountryCodeDescending()
Sort response items by the CountryCode attribute. Use reverse order.
public AddressClient OrderByCountryCodeDescending()
Returns
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public AddressClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public AddressClient OrderByCreatedAtDescending()
Returns
OrderByLocation()
Sort response items by the Location attribute.
public AddressClient OrderByLocation()
Returns
OrderByLocationDescending()
Sort response items by the Location attribute. Use reverse order.
public AddressClient OrderByLocationDescending()
Returns
OrderByPrimary()
Sort response items by the Primary attribute.
public AddressClient OrderByPrimary()
Returns
OrderByPrimaryDescending()
Sort response items by the Primary attribute. Use reverse order.
public AddressClient OrderByPrimaryDescending()
Returns
OrderByState()
Sort response items by the State attribute.
public AddressClient OrderByState()
Returns
OrderByStateDescending()
Sort response items by the State attribute. Use reverse order.
public AddressClient OrderByStateDescending()
Returns
OrderByStreetLine1()
Sort response items by the StreetLine1 attribute.
public AddressClient OrderByStreetLine1()
Returns
OrderByStreetLine1Descending()
Sort response items by the StreetLine1 attribute. Use reverse order.
public AddressClient OrderByStreetLine1Descending()
Returns
OrderByStreetLine2()
Sort response items by the StreetLine2 attribute.
public AddressClient OrderByStreetLine2()
Returns
OrderByStreetLine2Descending()
Sort response items by the StreetLine2 attribute. Use reverse order.
public AddressClient OrderByStreetLine2Descending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public AddressClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public AddressClient OrderByUpdatedAtDescending()
Returns
OrderByZip()
Sort response items by the Zip attribute.
public AddressClient OrderByZip()
Returns
OrderByZipDescending()
Sort response items by the Zip attribute. Use reverse order.
public AddressClient OrderByZipDescending()
Returns
PostAsync(Address, CancellationToken)
Creates a new Address resource asynchronously.
public Task<AddressResponse> PostAsync(Address resource, CancellationToken cancellationToken = default)
Parameters
resourceAddressThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<AddressResponse>
A task representing the asynchronous operation, containing the created Address resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PostAsync(JsonApiDocument<AddressResource>, CancellationToken)
Creates a new Address resource asynchronously.
public Task<AddressResponse> PostAsync(JsonApiDocument<AddressResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<AddressResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<AddressResponse>
A task representing the asynchronous operation, containing the created Address resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WhereCity(string)
Query response items by the City attribute.
public AddressClient WhereCity(string value)
Parameters
valuestring
Returns
WhereCountryCode(string)
Query response items by the CountryCode attribute.
public AddressClient WhereCountryCode(string value)
Parameters
valuestring
Returns
WhereLocation(string)
Query response items by the Location attribute.
public AddressClient WhereLocation(string value)
Parameters
valuestring
Returns
WherePrimary(bool)
Query response items by the Primary attribute.
public AddressClient WherePrimary(bool value)
Parameters
valuebool
Returns
WhereState(string)
Query response items by the State attribute.
public AddressClient WhereState(string value)
Parameters
valuestring
Returns
WhereStreetLine1(string)
Query response items by the StreetLine1 attribute.
public AddressClient WhereStreetLine1(string value)
Parameters
valuestring
Returns
WhereStreetLine2(string)
Query response items by the StreetLine2 attribute.
public AddressClient WhereStreetLine2(string value)
Parameters
valuestring
Returns
WhereZip(string)
Query response items by the Zip attribute.
public AddressClient WhereZip(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a Address client for a specific resource ID.
public AddressClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- AddressClient
A new instance of the resource client for the specified resource ID.