Table of Contents

Class PaginatedAttachmentClient

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

Client for interacting with Attachment collection resources.

public class PaginatedAttachmentClient : PaginatedResourceClient<Attachment, AttachmentResource, AttachmentCollectionResponse, AttachmentResponse>
Inheritance
PaginatedAttachmentClient
Inherited Members

Constructors

PaginatedAttachmentClient(HttpClient, Uri)

Client for interacting with Attachment collection resources.

public PaginatedAttachmentClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of Attachment resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<AttachmentCollectionResponse>

A task representing the asynchronous operation, containing a paginated list of Attachment resources.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeEvent()

Include related Event resources in the response.

public AttachmentClient IncludeEvent()

Returns

AttachmentClient

OrderByContentType()

Sort response items by the ContentType attribute.

public AttachmentClient OrderByContentType()

Returns

AttachmentClient

OrderByContentTypeDescending()

Sort response items by the ContentType attribute. Use reverse order.

public AttachmentClient OrderByContentTypeDescending()

Returns

AttachmentClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public AttachmentClient OrderByCreatedAt()

Returns

AttachmentClient

OrderByCreatedAtDescending()

Sort response items by the CreatedAt attribute. Use reverse order.

public AttachmentClient OrderByCreatedAtDescending()

Returns

AttachmentClient

OrderByDescription()

Sort response items by the Description attribute.

public AttachmentClient OrderByDescription()

Returns

AttachmentClient

OrderByDescriptionDescending()

Sort response items by the Description attribute. Use reverse order.

public AttachmentClient OrderByDescriptionDescending()

Returns

AttachmentClient

OrderByFileSize()

Sort response items by the FileSize attribute.

public AttachmentClient OrderByFileSize()

Returns

AttachmentClient

OrderByFileSizeDescending()

Sort response items by the FileSize attribute. Use reverse order.

public AttachmentClient OrderByFileSizeDescending()

Returns

AttachmentClient

OrderByName()

Sort response items by the Name attribute.

public AttachmentClient OrderByName()

Returns

AttachmentClient

OrderByNameDescending()

Sort response items by the Name attribute. Use reverse order.

public AttachmentClient OrderByNameDescending()

Returns

AttachmentClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public AttachmentClient OrderByUpdatedAt()

Returns

AttachmentClient

OrderByUpdatedAtDescending()

Sort response items by the UpdatedAt attribute. Use reverse order.

public AttachmentClient OrderByUpdatedAtDescending()

Returns

AttachmentClient

WhereContentType(string)

Query response items by the ContentType attribute.

public AttachmentClient WhereContentType(string value)

Parameters

value string

Returns

AttachmentClient

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public AttachmentClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

AttachmentClient

WhereDescription(string)

Query response items by the Description attribute.

public AttachmentClient WhereDescription(string value)

Parameters

value string

Returns

AttachmentClient

WhereFileSize(int)

Query response items by the FileSize attribute.

public AttachmentClient WhereFileSize(int value)

Parameters

value int

Returns

AttachmentClient

WhereName(string)

Query response items by the Name attribute.

public AttachmentClient WhereName(string value)

Parameters

value string

Returns

AttachmentClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public AttachmentClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

AttachmentClient

WithId(string)

Creates a new instance of a Attachment client for a specific resource ID.

public AttachmentClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

AttachmentClient

A new instance of the resource client for the specified resource ID.