Welshman Docs / @welshman/domain / ClassifiedReader
Class: ClassifiedReader
Defined in: kinds/Classified.ts:24
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 ClassifiedReader(
kind,context,event):ClassifiedReader
Defined in: core/EventReader.ts:17
Parameters
kind
number
context
event
Returns
ClassifiedReader
Inherited from
Properties
context
readonlycontext:KindContext
Defined in: core/EventReader.ts:19
Inherited from
event
readonlyevent:TrustedEvent
Defined in: core/EventReader.ts:20
Inherited from
kind
readonlykind:number
Defined in: core/EventReader.ts:18
Inherited from
Methods
address()
address():
string
Defined in: core/EventReader.ts:55
Returns
string
Inherited from
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
images()
images():
string[]
Defined in: kinds/Classified.ts:45
Returns
string[]
parse()
parse():
this
Defined in: core/EventReader.ts:86
Returns
this
Inherited from
price()
price():
undefined|ClassifiedPrice
Defined in: kinds/Classified.ts:33
Returns
undefined | ClassifiedPrice
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
status()
status():
undefined|string
Defined in: kinds/Classified.ts:41
Returns
undefined | string
summary()
summary():
undefined|string
Defined in: kinds/Classified.ts:29
Returns
undefined | string
tags()
tags():
string[][]
Defined in: core/EventReader.ts:43
Returns
string[][]
Inherited from
title()
title():
undefined|string
Defined in: kinds/Classified.ts:25
Returns
undefined | string
topics()
topics():
string[]
Defined in: kinds/Classified.ts:49
Returns
string[]
zapSplits()
zapSplits():
ZapSplit[]
Defined in: core/EventReader.ts:75
Returns
ZapSplit[]