Table of Contents

Class ResourceSuggestionClient

Namespace
Crews.PlanningCenter.Api.Calendar.V2021_07_20
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the ResourceSuggestion resource.

public class ResourceSuggestionClient : SingletonResourceClient<ResourceSuggestion, ResourceSuggestionResource, ResourceSuggestionResponse>
Inheritance
ResourceSuggestionClient
Inherited Members

Constructors

ResourceSuggestionClient(HttpClient, Uri)

Client for interacting with the ResourceSuggestion resource.

public ResourceSuggestionClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

Resource

Associated Resource.

public ResourceClient Resource { get; }

Property Value

ResourceClient

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public ResourceSuggestionClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

ResourceSuggestionClient

The current ResourceSuggestionClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public ResourceSuggestionClient ClearParameters()

Returns

ResourceSuggestionClient

The current ResourceSuggestionClient instance.

GetAsync(CancellationToken)

Fetches the ResourceSuggestion resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ResourceSuggestionResponse>

A task representing the asynchronous operation, containing the ResourceSuggestion resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeResource()

Include related Resource resources in the response.

public ResourceSuggestionClient IncludeResource()

Returns

ResourceSuggestionClient