-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Arnau Mora Gras <[email protected]>
- Loading branch information
1 parent
c1bc143
commit 909aeb8
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/kotlin/at/bitfire/dav4jvm/property/caldav/CalendarTimezoneId.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
package at.bitfire.dav4jvm.property.caldav | ||
|
||
import at.bitfire.dav4jvm.Property | ||
import at.bitfire.dav4jvm.PropertyFactory | ||
import at.bitfire.dav4jvm.XmlReader | ||
import org.xmlpull.v1.XmlPullParser | ||
|
||
class CalendarTimezoneId( | ||
val identifier: String? | ||
): Property { | ||
|
||
companion object { | ||
@JvmField | ||
val NAME = Property.Name(NS_CALDAV, "calendar-timezone-id") | ||
} | ||
|
||
|
||
object Factory: PropertyFactory { | ||
|
||
override fun getName() = NAME | ||
|
||
override fun create(parser: XmlPullParser) = | ||
// <!ELEMENT calendar-timezone-id (#PCDATA)> | ||
CalendarTimezoneId(XmlReader(parser).readText()) | ||
|
||
} | ||
} |