Table of Contents

Class PaginatedHouseholdMembershipClient

Namespace
Crews.PlanningCenter.Api.People.V2019_10_10
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with HouseholdMembership collection resources.

public class PaginatedHouseholdMembershipClient : PaginatedResourceClient<HouseholdMembership, HouseholdMembershipResource, HouseholdMembershipCollectionResponse, HouseholdMembershipResponse>
Inheritance
PaginatedHouseholdMembershipClient
Inherited Members

Constructors

PaginatedHouseholdMembershipClient(HttpClient, Uri)

Client for interacting with HouseholdMembership collection resources.

public PaginatedHouseholdMembershipClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public PaginatedHouseholdMembershipClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

PaginatedHouseholdMembershipClient

The current PaginatedHouseholdMembershipClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public PaginatedHouseholdMembershipClient ClearParameters()

Returns

PaginatedHouseholdMembershipClient

The current PaginatedHouseholdMembershipClient instance.

Filter(string)

Adds a filter query parameter to the request.

public PaginatedHouseholdMembershipClient Filter(string filter)

Parameters

filter string

The filter criteria.

Returns

PaginatedHouseholdMembershipClient

The current PaginatedHouseholdMembershipClient instance.

Remarks

See Planning Center API documentation for details on supported filter values for this resource.

GetAsync(CancellationToken)

Fetches a paginated list of HouseholdMembership resources asynchronously.

public Task<HouseholdMembershipCollectionResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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

HouseholdMembershipClient

IncludePerson()

Include related Person resources in the response.

public HouseholdMembershipClient IncludePerson()

Returns

HouseholdMembershipClient

Offset(int)

Sets the item offset in the paginated response.

public PaginatedHouseholdMembershipClient Offset(int count)

Parameters

count int

The number of items to skip.

Returns

PaginatedHouseholdMembershipClient

The current PaginatedHouseholdMembershipClient instance.

OrderByPending()

Sort response items by the Pending attribute.

public HouseholdMembershipClient OrderByPending()

Returns

HouseholdMembershipClient

OrderByPendingDescending()

Sort response items by the Pending attribute. Use reverse order.

public HouseholdMembershipClient OrderByPendingDescending()

Returns

HouseholdMembershipClient

OrderByPersonName()

Sort response items by the PersonName attribute.

public HouseholdMembershipClient OrderByPersonName()

Returns

HouseholdMembershipClient

OrderByPersonNameDescending()

Sort response items by the PersonName attribute. Use reverse order.

public HouseholdMembershipClient OrderByPersonNameDescending()

Returns

HouseholdMembershipClient

PerPage(int)

Sets the number of items to be returned per page in the paginated response.

public PaginatedHouseholdMembershipClient PerPage(int count)

Parameters

count int

The number of items to be returned per page.

Returns

PaginatedHouseholdMembershipClient

The current PaginatedHouseholdMembershipClient instance.

PostAsync(HouseholdMembership, CancellationToken)

Creates a new HouseholdMembership resource asynchronously.

public Task<HouseholdMembershipResponse> PostAsync(HouseholdMembership resource, CancellationToken cancellationToken = default)

Parameters

resource HouseholdMembership

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A 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

document JsonApiDocument<HouseholdMembershipResource>

The JSON:API document to be sent in the POST request.

cancellationToken CancellationToken

A 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

value bool

Returns

HouseholdMembershipClient

WherePersonName(string)

Query response items by the PersonName attribute.

public HouseholdMembershipClient WherePersonName(string value)

Parameters

value string

Returns

HouseholdMembershipClient

WithId(string)

Creates a new instance of a HouseholdMembership client for a specific resource ID.

public HouseholdMembershipClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

HouseholdMembershipClient

A new instance of the resource client for the specified resource ID.