Class OutgoingAttachment
One file to upload as part of a message. For end-to-end encrypted channels the stream is already ciphertext, DeclaredKind is set (image/audio/file), and EncryptedPreview holds the room-encrypted ASCII art for images. For normal channels only Stream and FileName are set.
public sealed record OutgoingAttachment : IEquatable<OutgoingAttachment>
- Inheritance
-
OutgoingAttachment
- Implements
- Inherited Members
Constructors
OutgoingAttachment(Stream, string, string?, string?)
One file to upload as part of a message. For end-to-end encrypted channels the stream is already ciphertext, DeclaredKind is set (image/audio/file), and EncryptedPreview holds the room-encrypted ASCII art for images. For normal channels only Stream and FileName are set.
public OutgoingAttachment(Stream Stream, string FileName, string? DeclaredKind = null, string? EncryptedPreview = null)
Parameters
Properties
DeclaredKind
public string? DeclaredKind { get; init; }
Property Value
EncryptedPreview
public string? EncryptedPreview { get; init; }
Property Value
FileName
public string FileName { get; init; }
Property Value
Stream
public Stream Stream { get; init; }
Property Value
- Stream
Methods
Deconstruct(out Stream, out string, out string?, out string?)
public void Deconstruct(out Stream Stream, out string FileName, out string? DeclaredKind, out string? EncryptedPreview)
Parameters
Equals(OutgoingAttachment?)
public bool Equals(OutgoingAttachment? other)
Parameters
otherOutgoingAttachment
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(OutgoingAttachment?, OutgoingAttachment?)
public static bool operator ==(OutgoingAttachment? left, OutgoingAttachment? right)
Parameters
leftOutgoingAttachmentrightOutgoingAttachment
Returns
operator !=(OutgoingAttachment?, OutgoingAttachment?)
public static bool operator !=(OutgoingAttachment? left, OutgoingAttachment? right)
Parameters
leftOutgoingAttachmentrightOutgoingAttachment