forked from solid/object
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMeeting.ts
More file actions
44 lines (34 loc) · 1.43 KB
/
Meeting.ts
File metadata and controls
44 lines (34 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { TermMappings, ValueMappings, TermWrapper } from "rdfjs-wrapper"
import { ICAL } from "../vocabulary/mod.js"
export class Meeting extends TermWrapper {
get summary(): string | undefined {
return this.singularNullable(ICAL.summary, ValueMappings.literalToString)
}
set summary(value: string | undefined) {
this.overwriteNullable(ICAL.summary, value, TermMappings.stringToLiteral)
}
get location(): string | undefined {
return this.singularNullable(ICAL.location, ValueMappings.literalToString)
}
set location(value: string | undefined) {
this.overwriteNullable(ICAL.location, value, TermMappings.stringToLiteral)
}
get comment(): string | undefined {
return this.singularNullable(ICAL.comment, ValueMappings.literalToString)
}
set comment(value: string | undefined) {
this.overwriteNullable(ICAL.comment, value, TermMappings.stringToLiteral)
}
get startDate(): Date | undefined {
return this.singularNullable(ICAL.dtstart, ValueMappings.literalToDate)
}
set startDate(value: Date | undefined) {
this.overwriteNullable(ICAL.dtstart, value, TermMappings.dateToLiteral)
}
get endDate(): Date | undefined {
return this.singularNullable(ICAL.dtend, ValueMappings.literalToDate)
}
set endDate(value: Date | undefined) {
this.overwriteNullable(ICAL.dtend, value, TermMappings.dateToLiteral)
}
}