Class: Payloads
identity_wasm.Payloads
Table of contents
Constructors
Methods
- toJSON
- toString
- fromJSON
- clone
- newFromValues
- getValues
- getUndisclosedIndexes
- getDisclosedIndexes
- getUndisclosedPayloads
- getDisclosedPayloads
- setUndisclosed
- replacePayloadAtIndex
Constructors
constructor
• new Payloads(entries
)
Parameters
Name | Type |
---|---|
entries | PayloadEntry [] |
Methods
toJSON
▸ toJSON(): Object
- Return copy of self without private attributes.
Returns
Object
▸ toJSON(): any
Serializes this to a JSON object.
Returns
any
toString
▸ toString(): string
Return stringified version of self.
Returns
string
fromJSON
▸ Static
fromJSON(json
): Payloads
Deserializes an instance from a JSON object.
Parameters
Name | Type |
---|---|
json | any |
Returns
clone
▸ clone(): Payloads
Deep clones the object.
Returns
newFromValues
▸ Static
newFromValues(values
): Payloads
Parameters
Name | Type |
---|---|
values | any [] |
Returns
getValues
▸ getValues(): any
[]
Returns
any
[]
getUndisclosedIndexes
▸ getUndisclosedIndexes(): Uint32Array
Returns
Uint32Array
getDisclosedIndexes
▸ getDisclosedIndexes(): Uint32Array
Returns
Uint32Array
getUndisclosedPayloads
▸ getUndisclosedPayloads(): any
[]
Returns
any
[]
getDisclosedPayloads
▸ getDisclosedPayloads(): Payloads
Returns
setUndisclosed
▸ setUndisclosed(index
): void
Parameters
Name | Type |
---|---|
index | number |
Returns
void
replacePayloadAtIndex
▸ replacePayloadAtIndex(index
, value
): any
Parameters
Name | Type |
---|---|
index | number |
value | any |
Returns
any