Class PaginatedHouseholdMembershipClient
- Namespace
- Crews.PlanningCenter.Api.People.V2022_01_05
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with HouseholdMembership collection resources.
public class PaginatedHouseholdMembershipClient : PaginatedResourceClient<HouseholdMembership, HouseholdMembershipResource, HouseholdMembershipCollectionResponse, HouseholdMembershipResponse>
- Inheritance
-
PaginatedResourceClient<HouseholdMembership, HouseholdMembershipResource, HouseholdMembershipCollectionResponse, HouseholdMembershipResponse>PaginatedHouseholdMembershipClient
- Inherited Members
Constructors
PaginatedHouseholdMembershipClient(HttpClient, Uri)
Client for interacting with HouseholdMembership collection resources.
public PaginatedHouseholdMembershipClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of HouseholdMembership resources asynchronously.
public Task<HouseholdMembershipCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<HouseholdMembershipCollectionResponse>
A task representing the asynchronous operation, containing a paginated list of HouseholdMembership resources.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeHousehold()
Include related Household resources in the response.
public HouseholdMembershipClient IncludeHousehold()
Returns
IncludePerson()
Include related Person resources in the response.
public HouseholdMembershipClient IncludePerson()
Returns
OrderByPending()
Sort response items by the Pending attribute.
public HouseholdMembershipClient OrderByPending()
Returns
OrderByPendingDescending()
Sort response items by the Pending attribute. Use reverse order.
public HouseholdMembershipClient OrderByPendingDescending()
Returns
OrderByPersonName()
Sort response items by the PersonName attribute.
public HouseholdMembershipClient OrderByPersonName()
Returns
OrderByPersonNameDescending()
Sort response items by the PersonName attribute. Use reverse order.
public HouseholdMembershipClient OrderByPersonNameDescending()
Returns
PostAsync(HouseholdMembership, CancellationToken)
Creates a new HouseholdMembership resource asynchronously.
public Task<HouseholdMembershipResponse> PostAsync(HouseholdMembership resource, CancellationToken cancellationToken = default)
Parameters
resourceHouseholdMembershipThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<HouseholdMembershipResponse>
A task representing the asynchronous operation, containing the created HouseholdMembership resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PostAsync(JsonApiDocument<HouseholdMembershipResource>, CancellationToken)
Creates a new HouseholdMembership resource asynchronously.
public Task<HouseholdMembershipResponse> PostAsync(JsonApiDocument<HouseholdMembershipResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<HouseholdMembershipResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<HouseholdMembershipResponse>
A task representing the asynchronous operation, containing the created HouseholdMembership resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
WherePending(bool)
Query response items by the Pending attribute.
public HouseholdMembershipClient WherePending(bool value)
Parameters
valuebool
Returns
WherePersonName(string)
Query response items by the PersonName attribute.
public HouseholdMembershipClient WherePersonName(string value)
Parameters
valuestring
Returns
WithId(string)
Creates a new instance of a HouseholdMembership client for a specific resource ID.
public HouseholdMembershipClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- HouseholdMembershipClient
A new instance of the resource client for the specified resource ID.