Class Attachment
Metadata of a received attachment. Download the content through the attachment service by Id.
public sealed record Attachment : IEquatable<Attachment>
- Inheritance
-
Attachment
- Implements
- Inherited Members
Constructors
Attachment(string, string?, string?, long?)
Metadata of a received attachment. Download the content through the attachment service by Id.
public Attachment(string Id, string? ContentType, string? Filename, long? Size)
Parameters
IdstringThe attachment id assigned by signal-cli (used with
GET /v1/attachments/{id}).ContentTypestringMIME type, e.g.
image/png.FilenamestringOriginal file name, if the sender provided one.
Sizelong?Size in bytes, if known.
Properties
ContentType
MIME type, e.g. image/png.
public string? ContentType { get; init; }
Property Value
Filename
Original file name, if the sender provided one.
public string? Filename { get; init; }
Property Value
Id
The attachment id assigned by signal-cli (used with GET /v1/attachments/{id}).
public string Id { get; init; }
Property Value
Size
Size in bytes, if known.
public long? Size { get; init; }
Property Value
- long?