Class Attachment
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2020_04_08
- 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
originalAttachment
Properties
ContentType
MIME type of the attachment
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("content_type")]
public string? ContentType { get; init; }
Property Value
CreatedAt
UTC time at which the attachment was created
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
Description
Description of the attachment
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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
UpdatedAt
UTC time at which the attachment was updated
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }
Property Value
Url
Path to where the attachment is stored
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("url")]
public string? Url { get; init; }
Property Value
Methods
Equals(Attachment?)
public virtual bool Equals(Attachment? other)
Parameters
otherAttachment
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Attachment?, Attachment?)
public static bool operator ==(Attachment? left, Attachment? right)
Parameters
leftAttachmentrightAttachment
Returns
operator !=(Attachment?, Attachment?)
public static bool operator !=(Attachment? left, Attachment? right)
Parameters
leftAttachmentrightAttachment