Skip to content

Welshman Docs / @welshman/domain / FeedListReader

Class: FeedListReader ​

Defined in: kinds/FeedList.ts:9

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 FeedListReader(kind, context, event): FeedListReader

Defined in: core/EventReader.ts:21

Parameters ​

kind ​

number

context ​

KindContext

event ​

TrustedEvent

Returns ​

FeedListReader

Inherited from ​

ListReader.constructor

Properties ​

context ​

readonly context: KindContext

Defined in: core/EventReader.ts:23

Inherited from ​

ListReader.context


decrypted ​

decrypted: boolean = false

Defined in: core/ListReader.ts:6

Inherited from ​

ListReader.decrypted


event ​

readonly event: TrustedEvent

Defined in: core/EventReader.ts:24

Inherited from ​

ListReader.event


kind ​

readonly kind: number

Defined in: core/EventReader.ts:22

Inherited from ​

ListReader.kind


privateTags ​

privateTags: string[][] = []

Defined in: core/ListReader.ts:8

Inherited from ​

ListReader.privateTags


publicTags ​

publicTags: string[][] = []

Defined in: core/ListReader.ts:7

Inherited from ​

ListReader.publicTags

Methods ​

address() ​

address(): string

Defined in: core/EventReader.ts:59

Returns ​

string

Inherited from ​

ListReader.address


addresses() ​

addresses(): string[]

Defined in: kinds/FeedList.ts:10

Returns ​

string[]


author() ​

author(): string

Defined in: core/EventReader.ts:39

Returns ​

string

Inherited from ​

ListReader.author


client() ​

client(): undefined | Client

Defined in: core/EventReader.ts:83

Returns ​

undefined | Client

Inherited from ​

ListReader.client


content() ​

content(): string

Defined in: core/EventReader.ts:43

Returns ​

string

Inherited from ​

ListReader.content


contentWarning() ​

contentWarning(): boolean

Defined in: core/EventReader.ts:75

Returns ​

boolean

Inherited from ​

ListReader.contentWarning


contentWarningReason() ​

contentWarningReason(): undefined | string

Defined in: core/EventReader.ts:79

Returns ​

undefined | string

Inherited from ​

ListReader.contentWarningReason


createdAt() ​

createdAt(): number

Defined in: core/EventReader.ts:51

Returns ​

number

Inherited from ​

ListReader.createdAt


emojis() ​

emojis(): Emoji[]

Defined in: core/EventReader.ts:87

Returns ​

Emoji[]

Inherited from ​

ListReader.emojis


expiration() ​

expiration(): undefined | number

Defined in: core/EventReader.ts:71

Returns ​

undefined | number

Inherited from ​

ListReader.expiration


id() ​

id(): string

Defined in: core/EventReader.ts:35

Returns ​

string

Inherited from ​

ListReader.id


identifier() ​

identifier(): undefined | string

Defined in: core/EventReader.ts:55

Returns ​

undefined | string

Inherited from ​

ListReader.identifier


includes() ​

includes(address): boolean

Defined in: kinds/FeedList.ts:14

Parameters ​

address ​

string

Returns ​

boolean


parse() ​

parse(): Promise<FeedListReader>

Defined in: core/ListReader.ts:10

Returns ​

Promise<FeedListReader>

Inherited from ​

ListReader.parse


protect() ​

protect(): boolean

Defined in: core/EventReader.ts:67

Returns ​

boolean

Inherited from ​

ListReader.protect


room() ​

room(): undefined | string

Defined in: core/EventReader.ts:63

Returns ​

undefined | string

Inherited from ​

ListReader.room


tags() ​

tags(): string[][]

Defined in: core/ListReader.ts:38

Returns ​

string[][]

Inherited from ​

ListReader.tags


zapSplits() ​

zapSplits(): ZapSplit[]

Defined in: core/EventReader.ts:91

Returns ​

ZapSplit[]

Inherited from ​

ListReader.zapSplits