Welshman Docs / @welshman/domain / ArticleReader
Class: ArticleReader ​
Defined in: kinds/Article.ts:9
A reader whose event can be parsed without IO — the common case. parse() returns the reader itself, so callers never await it. Override parse to derive state from the event, returning this.
Extends ​
Constructors ​
Constructor ​
new ArticleReader(
kind,context,event):ArticleReader
Defined in: core/EventReader.ts:21
Parameters ​
kind ​
number
context ​
event ​
Returns ​
ArticleReader
Inherited from ​
Properties ​
context ​
readonlycontext:KindContext
Defined in: core/EventReader.ts:23
Inherited from ​
event ​
readonlyevent:TrustedEvent
Defined in: core/EventReader.ts:24
Inherited from ​
kind ​
readonlykind:number
Defined in: core/EventReader.ts:22
Inherited from ​
Methods ​
address() ​
address():
string
Defined in: core/EventReader.ts:59
Returns ​
string
Inherited from ​
author() ​
author():
string
Defined in: core/EventReader.ts:39
Returns ​
string
Inherited from ​
client() ​
client():
undefined|Client
Defined in: core/EventReader.ts:83
Returns ​
undefined | Client
Inherited from ​
content() ​
content():
string
Defined in: core/EventReader.ts:43
Returns ​
string
Inherited from ​
contentWarning() ​
contentWarning():
boolean
Defined in: core/EventReader.ts:75
Returns ​
boolean
Inherited from ​
contentWarningReason() ​
contentWarningReason():
undefined|string
Defined in: core/EventReader.ts:79
Returns ​
undefined | string
Inherited from ​
EventReader.contentWarningReason
createdAt() ​
createdAt():
number
Defined in: core/EventReader.ts:51
Returns ​
number
Inherited from ​
emojis() ​
emojis():
Emoji[]
Defined in: core/EventReader.ts:87
Returns ​
Emoji[]
Inherited from ​
expiration() ​
expiration():
undefined|number
Defined in: core/EventReader.ts:71
Returns ​
undefined | number
Inherited from ​
id() ​
id():
string
Defined in: core/EventReader.ts:35
Returns ​
string
Inherited from ​
identifier() ​
identifier():
undefined|string
Defined in: core/EventReader.ts:55
Returns ​
undefined | string
Inherited from ​
image() ​
image():
undefined|string
Defined in: kinds/Article.ts:18
Returns ​
undefined | string
parse() ​
parse():
this
Defined in: core/EventReader.ts:102
Returns ​
this
Inherited from ​
protect() ​
protect():
boolean
Defined in: core/EventReader.ts:67
Returns ​
boolean
Inherited from ​
publishedAt() ​
publishedAt():
number
Defined in: kinds/Article.ts:24
Returns ​
number
room() ​
room():
undefined|string
Defined in: core/EventReader.ts:63
Returns ​
undefined | string
Inherited from ​
summary() ​
summary():
undefined|string
Defined in: kinds/Article.ts:14
Returns ​
undefined | string
tags() ​
tags():
string[][]
Defined in: core/EventReader.ts:47
Returns ​
string[][]
Inherited from ​
title() ​
title():
undefined|string
Defined in: kinds/Article.ts:10
Returns ​
undefined | string
topics() ​
topics():
string[]
Defined in: kinds/Article.ts:30
Returns ​
string[]
zapSplits() ​
zapSplits():
ZapSplit[]
Defined in: core/EventReader.ts:91
Returns ​
ZapSplit[]