@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
Name | Type |
---|---|
data | AttachmentData |
mediaType? | string |
id | string |
filename? | string [] |
format? | string |
lastModTime? | string |
byteCount? | number |
description? | string |
Returns
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
Name | Type | Default value |
---|---|---|
payload | T | undefined |
id | string | undefined |
mediaType | string | "application/json" |
filename? | string [] | undefined |
format? | string | undefined |
lastModTime? | string | undefined |
byteCount? | number | undefined |
description? | string | undefined |