Table of Contents

Class PaginatedSocialProfileClient

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

Client for interacting with SocialProfile collection resources.

public class PaginatedSocialProfileClient : PaginatedResourceClient<SocialProfile, SocialProfileResource, SocialProfileCollectionResponse, SocialProfileResponse>
Inheritance
PaginatedSocialProfileClient
Inherited Members

Constructors

PaginatedSocialProfileClient(HttpClient, Uri)

Client for interacting with SocialProfile collection resources.

public PaginatedSocialProfileClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of SocialProfile resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<SocialProfileCollectionResponse>

A task representing the asynchronous operation, containing a paginated list of SocialProfile resources.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludePerson()

Include related Person resources in the response.

public SocialProfileClient IncludePerson()

Returns

SocialProfileClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public SocialProfileClient OrderByCreatedAt()

Returns

SocialProfileClient

OrderByCreatedAtDescending()

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

public SocialProfileClient OrderByCreatedAtDescending()

Returns

SocialProfileClient

OrderBySite()

Sort response items by the Site attribute.

public SocialProfileClient OrderBySite()

Returns

SocialProfileClient

OrderBySiteDescending()

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

public SocialProfileClient OrderBySiteDescending()

Returns

SocialProfileClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public SocialProfileClient OrderByUpdatedAt()

Returns

SocialProfileClient

OrderByUpdatedAtDescending()

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

public SocialProfileClient OrderByUpdatedAtDescending()

Returns

SocialProfileClient

OrderByUrl()

Sort response items by the Url attribute.

public SocialProfileClient OrderByUrl()

Returns

SocialProfileClient

OrderByUrlDescending()

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

public SocialProfileClient OrderByUrlDescending()

Returns

SocialProfileClient

OrderByVerified()

Sort response items by the Verified attribute.

public SocialProfileClient OrderByVerified()

Returns

SocialProfileClient

OrderByVerifiedDescending()

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

public SocialProfileClient OrderByVerifiedDescending()

Returns

SocialProfileClient

PostAsync(SocialProfile, CancellationToken)

Creates a new SocialProfile resource asynchronously.

public Task<SocialProfileResponse> PostAsync(SocialProfile resource, CancellationToken cancellationToken = default)

Parameters

resource SocialProfile

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<SocialProfileResponse>

A task representing the asynchronous operation, containing the created SocialProfile resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<SocialProfileResource>, CancellationToken)

Creates a new SocialProfile resource asynchronously.

public Task<SocialProfileResponse> PostAsync(JsonApiDocument<SocialProfileResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<SocialProfileResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<SocialProfileResponse>

A task representing the asynchronous operation, containing the created SocialProfile resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public SocialProfileClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

SocialProfileClient

WhereSite(string)

Query response items by the Site attribute.

public SocialProfileClient WhereSite(string value)

Parameters

value string

Returns

SocialProfileClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public SocialProfileClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

SocialProfileClient

WhereUrl(string)

Query response items by the Url attribute.

public SocialProfileClient WhereUrl(string value)

Parameters

value string

Returns

SocialProfileClient

WhereVerified(bool)

Query response items by the Verified attribute.

public SocialProfileClient WhereVerified(bool value)

Parameters

value bool

Returns

SocialProfileClient

WithId(string)

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

public SocialProfileClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

SocialProfileClient

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