Class ItemClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_11_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Item resource.
public class ItemClient : SingletonResourceClient<Item, ItemResource, ItemResponse>
- Inheritance
-
ItemClient
- Inherited Members
Constructors
ItemClient(HttpClient, Uri)
Client for interacting with the Item resource.
public ItemClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Arrangement
Associated Arrangement.
public ArrangementClient Arrangement { get; }
Property Value
Attachments
Associated Attachments.
public PaginatedAttachmentClient Attachments { get; }
Property Value
CustomSlides
Associated CustomSlides.
public PaginatedCustomSlideClient CustomSlides { get; }
Property Value
ItemNotes
Associated ItemNotes.
public PaginatedItemNoteClient ItemNotes { get; }
Property Value
ItemTimes
Associated ItemTimes.
public PaginatedItemTimeClient ItemTimes { get; }
Property Value
Key
Associated Key.
public KeyClient Key { get; }
Property Value
Media
Associated Media.
public PaginatedMediaClient Media { get; }
Property Value
SelectedAttachment
Associated SelectedAttachment.
public AttachmentClient SelectedAttachment { get; }
Property Value
SelectedBackground
Associated SelectedBackground.
public AttachmentClient SelectedBackground { get; }
Property Value
Song
Associated Song.
public SongClient Song { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the Item 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 Item resource asynchronously.
public Task<ItemResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ItemResponse>
A task representing the asynchronous operation, containing the Item resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeArrangement()
Include related Arrangement resources in the response.
public ItemClient IncludeArrangement()
Returns
IncludeItemNotes()
Include related ItemNotes resources in the response.
public ItemClient IncludeItemNotes()
Returns
IncludeItemTimes()
Include related ItemTimes resources in the response.
public ItemClient IncludeItemTimes()
Returns
IncludeKey()
Include related Key resources in the response.
public ItemClient IncludeKey()
Returns
IncludeMedia()
Include related Media resources in the response.
public ItemClient IncludeMedia()
Returns
IncludeSelectedAttachment()
Include related SelectedAttachment resources in the response.
public ItemClient IncludeSelectedAttachment()
Returns
IncludeSong()
Include related Song resources in the response.
public ItemClient IncludeSong()
Returns
PatchAsync(Item, CancellationToken)
Updates an existing Item resource asynchronously.
public Task<ItemResponse> PatchAsync(Item resource, CancellationToken cancellationToken = default)
Parameters
resourceItemThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ItemResponse>
A task representing the asynchronous operation, containing the updated Item resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<ItemResource>, CancellationToken)
Updates an existing Item resource asynchronously.
public Task<ItemResponse> PatchAsync(JsonApiDocument<ItemResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<ItemResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ItemResponse>
A task representing the asynchronous operation, containing the updated Item resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.