Welshman Docs / @welshman/domain / ListReader
Abstract Class: ListReader ​
Defined in: domain/src/core/ListReader.ts:5
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 ​
Extended by ​
BookmarkListReaderCommandListReaderFeedListReaderMuteListReaderPinListReaderRoomListReaderTopicListReader
Constructors ​
Constructor ​
new ListReader(
kind,context,event):ListReader
Defined in: domain/src/core/EventReader.ts:25
Parameters ​
kind ​
number
context ​
event ​
Returns ​
ListReader
Inherited from ​
Properties ​
context ​
readonlycontext:KindContext
Defined in: domain/src/core/EventReader.ts:27
Inherited from ​
decrypted ​
decrypted:
boolean=false
Defined in: domain/src/core/ListReader.ts:6
event ​
readonlyevent:TrustedEvent
Defined in: domain/src/core/EventReader.ts:28
Inherited from ​
kind ​
readonlykind:number
Defined in: domain/src/core/EventReader.ts:26
Inherited from ​
privateTags ​
privateTags:
string[][] =[]
Defined in: domain/src/core/ListReader.ts:8
publicTags ​
publicTags:
string[][] =[]
Defined in: domain/src/core/ListReader.ts:7
Methods ​
address() ​
address():
string
Defined in: domain/src/core/EventReader.ts:63
Returns ​
string
Inherited from ​
author() ​
author():
string
Defined in: domain/src/core/EventReader.ts:43
Returns ​
string
Inherited from ​
client() ​
client():
Client|undefined
Defined in: domain/src/core/EventReader.ts:87
Returns ​
Client | undefined
Inherited from ​
content() ​
content():
string
Defined in: domain/src/core/EventReader.ts:47
Returns ​
string
Inherited from ​
contentWarning() ​
contentWarning():
boolean
Defined in: domain/src/core/EventReader.ts:79
Returns ​
boolean
Inherited from ​
AsyncEventReader.contentWarning
contentWarningReason() ​
contentWarningReason():
string|undefined
Defined in: domain/src/core/EventReader.ts:83
Returns ​
string | undefined
Inherited from ​
AsyncEventReader.contentWarningReason
createdAt() ​
createdAt():
number
Defined in: domain/src/core/EventReader.ts:55
Returns ​
number
Inherited from ​
emojis() ​
emojis():
Emoji[]
Defined in: domain/src/core/EventReader.ts:91
Returns ​
Emoji[]
Inherited from ​
expiration() ​
expiration():
number|undefined
Defined in: domain/src/core/EventReader.ts:75
Returns ​
number | undefined
Inherited from ​
id() ​
id():
string
Defined in: domain/src/core/EventReader.ts:39
Returns ​
string
Inherited from ​
identifier() ​
identifier():
string|undefined
Defined in: domain/src/core/EventReader.ts:59
Returns ​
string | undefined
Inherited from ​
imeta() ​
imeta():
Imeta[]
Defined in: domain/src/core/EventReader.ts:95
Returns ​
Imeta[]
Inherited from ​
parse() ​
parse():
Promise<ListReader>
Defined in: domain/src/core/ListReader.ts:10
Returns ​
Promise<ListReader>
Overrides ​
protect() ​
protect():
boolean
Defined in: domain/src/core/EventReader.ts:71
Returns ​
boolean
Inherited from ​
quotes() ​
quotes():
Quote[]
Defined in: domain/src/core/EventReader.ts:99
Returns ​
Quote[]
Inherited from ​
room() ​
room():
string|undefined
Defined in: domain/src/core/EventReader.ts:67
Returns ​
string | undefined
Inherited from ​
tags() ​
tags():
string[][]
Defined in: domain/src/core/ListReader.ts:38
Returns ​
string[][]
Overrides ​
zapSplits() ​
zapSplits():
ZapSplit[]
Defined in: domain/src/core/EventReader.ts:103
Returns ​
ZapSplit[]