Table of Contents

Class Attachment

Namespace
Signal.Domain.Messaging
Assembly
Signal.Domain.dll

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

Id string

The attachment id assigned by signal-cli (used with GET /v1/attachments/{id}).

ContentType string

MIME type, e.g. image/png.

Filename string

Original file name, if the sender provided one.

Size long?

Size in bytes, if known.

Properties

ContentType

MIME type, e.g. image/png.

public string? ContentType { get; init; }

Property Value

string

Filename

Original file name, if the sender provided one.

public string? Filename { get; init; }

Property Value

string

Id

The attachment id assigned by signal-cli (used with GET /v1/attachments/{id}).

public string Id { get; init; }

Property Value

string

Size

Size in bytes, if known.

public long? Size { get; init; }

Property Value

long?