Skip to main content

@atala/prism-wallet-sdk / Exports / Domain / AttachmentDescriptor

Class: AttachmentDescriptor

Domain.AttachmentDescriptor

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new AttachmentDescriptor(data, mediaType?, id?, filename?, format?, lastModTime?, byteCount?, description?): AttachmentDescriptor

Parameters

NameType
dataAttachmentData
mediaType?string
idstring
filename?string[]
format?string
lastModTime?string
byteCount?number
description?string

Returns

AttachmentDescriptor

Defined in

src/domain/models/MessageAttachment.ts:41

Properties

byteCount

Optional Readonly byteCount: number

Defined in

src/domain/models/MessageAttachment.ts:48


data

Readonly data: AttachmentData

Defined in

src/domain/models/MessageAttachment.ts:42


description

Optional Readonly description: string

Defined in

src/domain/models/MessageAttachment.ts:49


filename

Optional Readonly filename: string[]

Defined in

src/domain/models/MessageAttachment.ts:45


format

Optional Readonly format: string

Defined in

src/domain/models/MessageAttachment.ts:46


id

Readonly id: string

Defined in

src/domain/models/MessageAttachment.ts:44


lastModTime

Optional Readonly lastModTime: string

Defined in

src/domain/models/MessageAttachment.ts:47


mediaType

Optional Readonly mediaType: string

Defined in

src/domain/models/MessageAttachment.ts:43

Accessors

payload

get payload(): any

Returns

any

Defined in

src/domain/models/MessageAttachment.ts:52

Methods

build

build<T>(payload, id?, mediaType?, filename?, format?, lastModTime?, byteCount?, description?): AttachmentDescriptor

Type parameters

Name
T

Parameters

NameTypeDefault value
payloadTundefined
idstringundefined
mediaTypestring"application/json"
filename?string[]undefined
format?stringundefined
lastModTime?stringundefined
byteCount?numberundefined
description?stringundefined

Returns

AttachmentDescriptor

Defined in

src/domain/models/MessageAttachment.ts:56