Welshman Docs / @welshman/domain / PinListReader
Class: PinListReader
Defined in: kinds/PinList.ts:8
A reader that has to decrypt (or otherwise await something) before its accessors are complete. parse() returns a promise, so the type system makes callers await it rather than silently reading a half-parsed event.
Extends
Constructors
Constructor
new PinListReader(
kind,context,event):PinListReader
Defined in: core/EventReader.ts:17
Parameters
kind
number
context
event
Returns
PinListReader
Inherited from
Properties
context
readonlycontext:KindContext
Defined in: core/EventReader.ts:19
Inherited from
decrypted
decrypted:
boolean=false
Defined in: core/ListReader.ts:6
Inherited from
event
readonlyevent:TrustedEvent
Defined in: core/EventReader.ts:20
Inherited from
kind
readonlykind:number
Defined in: core/EventReader.ts:18
Inherited from
privateTags
privateTags:
string[][] =[]
Defined in: core/ListReader.ts:8
Inherited from
publicTags
publicTags:
string[][] =[]
Defined in: core/ListReader.ts:7
Inherited from
Methods
address()
address():
string
Defined in: core/EventReader.ts:55
Returns
string
Inherited from
addresses()
addresses():
string[]
Defined in: kinds/PinList.ts:13
Returns
string[]
author()
author():
string
Defined in: core/EventReader.ts:35
Returns
string
Inherited from
content()
content():
string
Defined in: core/EventReader.ts:39
Returns
string
Inherited from
createdAt()
createdAt():
number
Defined in: core/EventReader.ts:47
Returns
number
Inherited from
emojis()
emojis():
Emoji[]
Defined in: core/EventReader.ts:71
Returns
Emoji[]
Inherited from
expiration()
expiration():
undefined|number
Defined in: core/EventReader.ts:67
Returns
undefined | number
Inherited from
id()
id():
string
Defined in: core/EventReader.ts:31
Returns
string
Inherited from
identifier()
identifier():
undefined|string
Defined in: core/EventReader.ts:51
Returns
undefined | string
Inherited from
ids()
ids():
string[]
Defined in: kinds/PinList.ts:9
Returns
string[]
parse()
parse():
Promise<PinListReader>
Defined in: core/ListReader.ts:10
Returns
Promise<PinListReader>
Inherited from
protect()
protect():
boolean
Defined in: core/EventReader.ts:63
Returns
boolean
Inherited from
room()
room():
undefined|string
Defined in: core/EventReader.ts:59
Returns
undefined | string
Inherited from
tags()
tags():
string[][]
Defined in: core/ListReader.ts:38
Returns
string[][]
Inherited from
zapSplits()
zapSplits():
ZapSplit[]
Defined in: core/EventReader.ts:75
Returns
ZapSplit[]