Class ThemeClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2025_05_28
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Theme resource.
public class ThemeClient : SingletonResourceClient<Theme, ThemeResource, ThemeResponse>
- Inheritance
-
ThemeClient
- Inherited Members
Constructors
ThemeClient(HttpClient, Uri)
Client for interacting with the Theme resource.
public ThemeClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches the Theme resource asynchronously.
public Task<ThemeResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ThemeResponse>
A task representing the asynchronous operation, containing the Theme resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.