Table of Contents

Class ChannelAttachment

Namespace
JD.AI.Core.Channels
Assembly
JD.AI.Core.dll

File or image attachment on an inbound channel message.

public record ChannelAttachment : IEquatable<ChannelAttachment>
Inheritance
ChannelAttachment
Implements
Inherited Members

Constructors

ChannelAttachment(string, string, long, Func<CancellationToken, Task<Stream>>)

File or image attachment on an inbound channel message.

public ChannelAttachment(string FileName, string ContentType, long SizeBytes, Func<CancellationToken, Task<Stream>> OpenReadAsync)

Parameters

FileName string
ContentType string
SizeBytes long
OpenReadAsync Func<CancellationToken, Task<Stream>>

Properties

ContentType

public string ContentType { get; init; }

Property Value

string

FileName

public string FileName { get; init; }

Property Value

string

OpenReadAsync

public Func<CancellationToken, Task<Stream>> OpenReadAsync { get; init; }

Property Value

Func<CancellationToken, Task<Stream>>

SizeBytes

public long SizeBytes { get; init; }

Property Value

long