AttachmentDescriptor
@hyperledger/identus-sdk v8.0.0
@hyperledger/identus-sdk / overview / Domain / AttachmentDescriptor
Class: AttachmentDescriptor
Defined in: packages/shared/domain/build/index.d.ts:275
Constructors
Constructor
new AttachmentDescriptor(
data:AttachmentData,mediaType?:string,id?:string,filename?:string[],format?:string,lastModTime?:string,byteCount?:number,description?:string):AttachmentDescriptor
Defined in: packages/shared/domain/build/index.d.ts:284
Parameters
| Parameter | Type |
|---|---|
data | AttachmentData |
mediaType? | string |
id? | string |
filename? | string[] |
format? | string |
lastModTime? | string |
byteCount? | number |
description? | string |
Returns
AttachmentDescriptor
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
byteCount? | readonly | number | packages/shared/domain/build/index.d.ts:282 |
data | readonly | AttachmentData | packages/shared/domain/build/index.d.ts:276 |
description? | readonly | string | packages/shared/domain/build/index.d.ts:283 |
filename? | readonly | string[] | packages/shared/domain/build/index.d.ts:279 |
format? | readonly | string | packages/shared/domain/build/index.d.ts:280 |
id | readonly | string | packages/shared/domain/build/index.d.ts:278 |
lastModTime? | readonly | string | packages/shared/domain/build/index.d.ts:281 |
mediaType? | readonly | string | packages/shared/domain/build/index.d.ts:277 |
Accessors
payload
Get Signature
get payload():
any
Defined in: packages/shared/domain/build/index.d.ts:285
Returns
any
Methods
build()
staticbuild<T>(payload:T,id?:string,mediaType?:string,filename?:string[],format?:string,lastModTime?:string,byteCount?:number,description?:string):AttachmentDescriptor
Defined in: packages/shared/domain/build/index.d.ts:293
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
payload | T |
id? | string |
mediaType? | string |
filename? | string[] |
format? | string |
lastModTime? | string |
byteCount? | number |
description? | string |
Returns
AttachmentDescriptor
extractJSON()
staticextractJSON(attachment:AttachmentDescriptor):any
Defined in: packages/shared/domain/build/index.d.ts:292
Get the presumed JSON from the attachment
Parameters
| Parameter | Type | Description |
|---|---|---|
attachment | AttachmentDescriptor | - |
Returns
any