Class PaginatedSocialProfileClient
- Namespace
- Crews.PlanningCenter.Api.People.V2020_04_06
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with SocialProfile collection resources.
public class PaginatedSocialProfileClient : PaginatedResourceClient<SocialProfile, SocialProfileResource, SocialProfileCollectionResponse, SocialProfileResponse>
- Inheritance
-
PaginatedResourceClient<SocialProfile, SocialProfileResource, SocialProfileCollectionResponse, SocialProfileResponse>PaginatedSocialProfileClient
- Inherited Members
Constructors
PaginatedSocialProfileClient(HttpClient, Uri)
Client for interacting with SocialProfile collection resources.
public PaginatedSocialProfileClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches a paginated list of SocialProfile resources asynchronously.
public Task<SocialProfileCollectionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
OrderByCreatedAt()
Sort response items by the CreatedAt attribute.
public SocialProfileClient OrderByCreatedAt()
Returns
OrderByCreatedAtDescending()
Sort response items by the CreatedAt attribute. Use reverse order.
public SocialProfileClient OrderByCreatedAtDescending()
Returns
OrderBySite()
Sort response items by the Site attribute.
public SocialProfileClient OrderBySite()
Returns
OrderBySiteDescending()
Sort response items by the Site attribute. Use reverse order.
public SocialProfileClient OrderBySiteDescending()
Returns
OrderByUpdatedAt()
Sort response items by the UpdatedAt attribute.
public SocialProfileClient OrderByUpdatedAt()
Returns
OrderByUpdatedAtDescending()
Sort response items by the UpdatedAt attribute. Use reverse order.
public SocialProfileClient OrderByUpdatedAtDescending()
Returns
OrderByUrl()
Sort response items by the Url attribute.
public SocialProfileClient OrderByUrl()
Returns
OrderByUrlDescending()
Sort response items by the Url attribute. Use reverse order.
public SocialProfileClient OrderByUrlDescending()
Returns
OrderByVerified()
Sort response items by the Verified attribute.
public SocialProfileClient OrderByVerified()
Returns
OrderByVerifiedDescending()
Sort response items by the Verified attribute. Use reverse order.
public SocialProfileClient OrderByVerifiedDescending()
Returns
PostAsync(SocialProfile, CancellationToken)
Creates a new SocialProfile resource asynchronously.
public Task<SocialProfileResponse> PostAsync(SocialProfile resource, CancellationToken cancellationToken = default)
Parameters
resourceSocialProfileThe resource data to be sent in the POST request.
cancellationTokenCancellationTokenA 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
documentJsonApiDocument<SocialProfileResource>The JSON:API document to be sent in the POST request.
cancellationTokenCancellationTokenA 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
valueDateTime
Returns
WhereSite(string)
Query response items by the Site attribute.
public SocialProfileClient WhereSite(string value)
Parameters
valuestring
Returns
WhereUpdatedAt(DateTime)
Query response items by the UpdatedAt attribute.
public SocialProfileClient WhereUpdatedAt(DateTime value)
Parameters
valueDateTime
Returns
WhereUrl(string)
Query response items by the Url attribute.
public SocialProfileClient WhereUrl(string value)
Parameters
valuestring
Returns
WhereVerified(bool)
Query response items by the Verified attribute.
public SocialProfileClient WhereVerified(bool value)
Parameters
valuebool
Returns
WithId(string)
Creates a new instance of a SocialProfile client for a specific resource ID.
public SocialProfileClient WithId(string id)
Parameters
idstringThe ID of the resource to create a client for.
Returns
- SocialProfileClient
A new instance of the resource client for the specified resource ID.