Class AttachmentDto
A file attached to a message. AsciiPreview holds the color-tag art for images (null otherwise). For end-to-end encrypted channels the content behind Url and the preview are ciphertext the server cannot read.
public record AttachmentDto : IEquatable<AttachmentDto>
- Inheritance
-
AttachmentDto
- Implements
- Inherited Members
Constructors
AttachmentDto(AttachmentDto)
protected AttachmentDto(AttachmentDto original)
Parameters
originalAttachmentDto
AttachmentDto(AttachmentKind, string, string, long, string?)
A file attached to a message. AsciiPreview holds the color-tag art for images (null otherwise). For end-to-end encrypted channels the content behind Url and the preview are ciphertext the server cannot read.
public AttachmentDto(AttachmentKind Kind, string Url, string FileName, long FileSize, string? AsciiPreview = null)
Parameters
KindAttachmentKindUrlstringFileNamestringFileSizelongAsciiPreviewstring
Properties
AsciiPreview
public string? AsciiPreview { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FileName
public string FileName { get; init; }
Property Value
FileSize
public long FileSize { get; init; }
Property Value
Kind
public AttachmentKind Kind { get; init; }
Property Value
Url
public string Url { get; init; }
Property Value
Methods
Deconstruct(out AttachmentKind, out string, out string, out long, out string?)
public void Deconstruct(out AttachmentKind Kind, out string Url, out string FileName, out long FileSize, out string? AsciiPreview)
Parameters
KindAttachmentKindUrlstringFileNamestringFileSizelongAsciiPreviewstring
Equals(AttachmentDto?)
public virtual bool Equals(AttachmentDto? other)
Parameters
otherAttachmentDto
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 ==(AttachmentDto?, AttachmentDto?)
public static bool operator ==(AttachmentDto? left, AttachmentDto? right)
Parameters
leftAttachmentDtorightAttachmentDto
Returns
operator !=(AttachmentDto?, AttachmentDto?)
public static bool operator !=(AttachmentDto? left, AttachmentDto? right)
Parameters
leftAttachmentDtorightAttachmentDto