Table of Contents

Class Attachment

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

Attributes for the Attachment resource.

public record Attachment : IEquatable<Attachment>
Inheritance
Attachment
Implements
Inherited Members

Constructors

Attachment()

public Attachment()

Attachment(Attachment)

protected Attachment(Attachment original)

Parameters

original Attachment

Properties

ContentType

MIME type of the attachment

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("content_type")]
public string? ContentType { get; init; }

Property Value

string

CreatedAt

UTC time at which the attachment was created

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }

Property Value

DateTime?

Description

Description of the attachment

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

FileSize

File size in bytes

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("file_size")]
public int? FileSize { get; init; }

Property Value

int?

Name

Set to the file name if not provided

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; init; }

Property Value

string

UpdatedAt

UTC time at which the attachment was updated

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }

Property Value

DateTime?

Url

Path to where the attachment is stored

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("url")]
public string? Url { get; init; }

Property Value

string

Methods

Equals(Attachment?)

public virtual bool Equals(Attachment? other)

Parameters

other Attachment

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Attachment?, Attachment?)

public static bool operator ==(Attachment? left, Attachment? right)

Parameters

left Attachment
right Attachment

Returns

bool

operator !=(Attachment?, Attachment?)

public static bool operator !=(Attachment? left, Attachment? right)

Parameters

left Attachment
right Attachment

Returns

bool