Commit e36207bb authored by bernhard's avatar bernhard

Implemented categories

parent c3b5aa4e
......@@ -46,6 +46,7 @@ class Task: ICalendar() {
var percentComplete: Int? = null
var rRule: RRule? = null
var categories: List<String>? = null
val rDates = LinkedList<RDate>()
val exDates = LinkedList<ExDate>()
......@@ -106,6 +107,7 @@ class Task: ICalendar() {
is DtStart -> { t.dtStart = prop }
is Completed -> { t.completedAt = prop }
is PercentComplete -> t.percentComplete = prop.percentage
is Categories -> t.categories = prop.categories.filterNotNull()
is RRule -> t.rRule = prop
is RDate -> t.rDates += prop
is ExDate -> t.exDates += prop
......@@ -162,6 +164,7 @@ class Task: ICalendar() {
classification?.let { props += it }
status?.let { props += it }
categories?.let { props += Categories(TextList(it.toTypedArray()))}
rRule?.let { props += it }
rDates.forEach { props += it }
exDates.forEach { props += it }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment