File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed
src/main/kotlin/at/bitfire/dav4jvm Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ import at.bitfire.dav4jvm.property.carddav.AddressbookHomeSet
13
13
import at.bitfire.dav4jvm.property.carddav.SupportedAddressData
14
14
import at.bitfire.dav4jvm.property.push.*
15
15
import at.bitfire.dav4jvm.property.webdav.*
16
- import org.xmlpull.v1.XmlPullParser
17
- import org.xmlpull.v1.XmlPullParserException
18
16
import java.util.logging.Level
19
17
import java.util.logging.Logger
18
+ import org.xmlpull.v1.XmlPullParser
19
+ import org.xmlpull.v1.XmlPullParserException
20
20
21
21
object PropertyRegistry {
22
22
@@ -43,6 +43,7 @@ object PropertyRegistry {
43
43
CalendarProxyReadFor .Factory ,
44
44
CalendarProxyWriteFor .Factory ,
45
45
CalendarTimezone .Factory ,
46
+ CalendarTimezoneId .Factory ,
46
47
CalendarUserAddressSet .Factory ,
47
48
CreationDate .Factory ,
48
49
CurrentUserPrincipal .Factory ,
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ */
6
+
7
+ package at.bitfire.dav4jvm.property.caldav
8
+
9
+ import at.bitfire.dav4jvm.Property
10
+ import at.bitfire.dav4jvm.PropertyFactory
11
+ import at.bitfire.dav4jvm.XmlReader
12
+ import org.xmlpull.v1.XmlPullParser
13
+
14
+ class CalendarTimezoneId (
15
+ val identifier : String?
16
+ ): Property {
17
+
18
+ companion object {
19
+ @JvmField
20
+ val NAME = Property .Name (NS_CALDAV , " calendar-timezone-id" )
21
+ }
22
+
23
+
24
+ object Factory: PropertyFactory {
25
+
26
+ override fun getName () = NAME
27
+
28
+ override fun create (parser : XmlPullParser ) =
29
+ // <!ELEMENT calendar-timezone-id (#PCDATA)>
30
+ CalendarTimezoneId (XmlReader (parser).readText())
31
+
32
+ }
33
+ }
You can’t perform that action at this time.
0 commit comments