Skip to content

Welshman Docs / @welshman/domain / BookmarkSetReader

Class: BookmarkSetReader ​

Defined in: domain/src/kinds/BookmarkSet.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 BookmarkSetReader(kind, context, event): BookmarkSetReader

Defined in: domain/src/core/EventReader.ts:25

Parameters ​

kind ​

number

context ​

KindContext

event ​

TrustedEvent

Returns ​

BookmarkSetReader

Inherited from ​

BookmarkListReader.constructor

Properties ​

context ​

readonly context: KindContext

Defined in: domain/src/core/EventReader.ts:27

Inherited from ​

BookmarkListReader.context


decrypted ​

decrypted: boolean = false

Defined in: domain/src/core/ListReader.ts:6

Inherited from ​

BookmarkListReader.decrypted


event ​

readonly event: TrustedEvent

Defined in: domain/src/core/EventReader.ts:28

Inherited from ​

BookmarkListReader.event


kind ​

readonly kind: number

Defined in: domain/src/core/EventReader.ts:26

Inherited from ​

BookmarkListReader.kind


privateTags ​

privateTags: string[][] = []

Defined in: domain/src/core/ListReader.ts:8

Inherited from ​

BookmarkListReader.privateTags


publicTags ​

publicTags: string[][] = []

Defined in: domain/src/core/ListReader.ts:7

Inherited from ​

BookmarkListReader.publicTags

Methods ​

address() ​

address(): string

Defined in: domain/src/core/EventReader.ts:63

Returns ​

string

Inherited from ​

BookmarkListReader.address


addresses() ​

addresses(): string[]

Defined in: domain/src/kinds/BookmarkList.ts:21

Returns ​

string[]

Inherited from ​

BookmarkListReader.addresses


author() ​

author(): string

Defined in: domain/src/core/EventReader.ts:43

Returns ​

string

Inherited from ​

BookmarkListReader.author


bookmarks() ​

bookmarks(): string[][]

Defined in: domain/src/kinds/BookmarkList.ts:13

Returns ​

string[][]

Inherited from ​

BookmarkListReader.bookmarks


client() ​

client(): Client | undefined

Defined in: domain/src/core/EventReader.ts:87

Returns ​

Client | undefined

Inherited from ​

BookmarkListReader.client


content() ​

content(): string

Defined in: domain/src/core/EventReader.ts:47

Returns ​

string

Inherited from ​

BookmarkListReader.content


contentWarning() ​

contentWarning(): boolean

Defined in: domain/src/core/EventReader.ts:79

Returns ​

boolean

Inherited from ​

BookmarkListReader.contentWarning


contentWarningReason() ​

contentWarningReason(): string | undefined

Defined in: domain/src/core/EventReader.ts:83

Returns ​

string | undefined

Inherited from ​

BookmarkListReader.contentWarningReason


createdAt() ​

createdAt(): number

Defined in: domain/src/core/EventReader.ts:55

Returns ​

number

Inherited from ​

BookmarkListReader.createdAt


description() ​

description(): string | undefined

Defined in: domain/src/kinds/BookmarkSet.ts:13

Returns ​

string | undefined


emojis() ​

emojis(): Emoji[]

Defined in: domain/src/core/EventReader.ts:91

Returns ​

Emoji[]

Inherited from ​

BookmarkListReader.emojis


expiration() ​

expiration(): number | undefined

Defined in: domain/src/core/EventReader.ts:75

Returns ​

number | undefined

Inherited from ​

BookmarkListReader.expiration


id() ​

id(): string

Defined in: domain/src/core/EventReader.ts:39

Returns ​

string

Inherited from ​

BookmarkListReader.id


identifier() ​

identifier(): string | undefined

Defined in: domain/src/core/EventReader.ts:59

Returns ​

string | undefined

Inherited from ​

BookmarkListReader.identifier


ids() ​

ids(): string[]

Defined in: domain/src/kinds/BookmarkList.ts:17

Returns ​

string[]

Inherited from ​

BookmarkListReader.ids


image() ​

image(): string | undefined

Defined in: domain/src/kinds/BookmarkSet.ts:17

Returns ​

string | undefined


imeta() ​

imeta(): Imeta[]

Defined in: domain/src/core/EventReader.ts:95

Returns ​

Imeta[]

Inherited from ​

BookmarkListReader.imeta


parse() ​

parse(): Promise<BookmarkSetReader>

Defined in: domain/src/core/ListReader.ts:10

Returns ​

Promise<BookmarkSetReader>

Inherited from ​

BookmarkListReader.parse


protect() ​

protect(): boolean

Defined in: domain/src/core/EventReader.ts:71

Returns ​

boolean

Inherited from ​

BookmarkListReader.protect


quotes() ​

quotes(): Quote[]

Defined in: domain/src/core/EventReader.ts:99

Returns ​

Quote[]

Inherited from ​

BookmarkListReader.quotes


room() ​

room(): string | undefined

Defined in: domain/src/core/EventReader.ts:67

Returns ​

string | undefined

Inherited from ​

BookmarkListReader.room


tags() ​

tags(): string[][]

Defined in: domain/src/core/ListReader.ts:38

Returns ​

string[][]

Inherited from ​

BookmarkListReader.tags


title() ​

title(): string | undefined

Defined in: domain/src/kinds/BookmarkSet.ts:9

Returns ​

string | undefined


topics() ​

topics(): string[]

Defined in: domain/src/kinds/BookmarkList.ts:25

Returns ​

string[]

Inherited from ​

BookmarkListReader.topics


urls() ​

urls(): string[]

Defined in: domain/src/kinds/BookmarkList.ts:29

Returns ​

string[]

Inherited from ​

BookmarkListReader.urls


zapSplits() ​

zapSplits(): ZapSplit[]

Defined in: domain/src/core/EventReader.ts:103

Returns ​

ZapSplit[]

Inherited from ​

BookmarkListReader.zapSplits