Class LiveClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Live resource.
public class LiveClient : SingletonResourceClient<Live, LiveResource, LiveResponse>
- Inheritance
-
LiveClient
- Inherited Members
Constructors
LiveClient(HttpClient, Uri)
Client for interacting with the Live resource.
public LiveClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Controller
Associated Controller.
public PersonClient Controller { get; }
Property Value
CurrentItemTime
Associated CurrentItemTime.
public ItemTimeClient CurrentItemTime { get; }
Property Value
Items
Associated Items.
public PaginatedItemClient Items { get; }
Property Value
NextItemTime
Associated NextItemTime.
public ItemTimeClient NextItemTime { get; }
Property Value
ServiceType
Associated ServiceType.
public ServiceTypeClient ServiceType { get; }
Property Value
WatchablePlans
Associated WatchablePlans.
public PaginatedPlanClient WatchablePlans { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the Live resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task
A task representing the asynchronous delete operation.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
GetAsync(CancellationToken)
Fetches the Live resource asynchronously.
public Task<LiveResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LiveResponse>
A task representing the asynchronous operation, containing the Live resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
GoToNextItemAsync(CancellationToken)
Planning Center does not provide a description for this action.
public Task GoToNextItemAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
GoToPreviousItemAsync(CancellationToken)
Planning Center does not provide a description for this action.
public Task GoToPreviousItemAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
IncludeController()
Include related Controller resources in the response.
public LiveClient IncludeController()
Returns
IncludeCurrentItemTime()
Include related CurrentItemTime resources in the response.
public LiveClient IncludeCurrentItemTime()
Returns
IncludeItems()
Include related Items resources in the response.
public LiveClient IncludeItems()
Returns
IncludeNextItemTime()
Include related NextItemTime resources in the response.
public LiveClient IncludeNextItemTime()
Returns
IncludeServiceType()
Include related ServiceType resources in the response.
public LiveClient IncludeServiceType()
Returns
PatchAsync(Live, CancellationToken)
Updates an existing Live resource asynchronously.
public Task<LiveResponse> PatchAsync(Live resource, CancellationToken cancellationToken = default)
Parameters
resourceLiveThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LiveResponse>
A task representing the asynchronous operation, containing the updated Live resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<LiveResource>, CancellationToken)
Updates an existing Live resource asynchronously.
public Task<LiveResponse> PatchAsync(JsonApiDocument<LiveResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<LiveResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<LiveResponse>
A task representing the asynchronous operation, containing the updated Live resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
ToggleControlAsync(CancellationToken)
Planning Center does not provide a description for this action.
public Task ToggleControlAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken