File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed
src/main/kotlin/at/bitfire/dav4jvm Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
# Java/Kotlin files
12
12
* .class
13
- kotlin /
13
+ . kotlin /
14
14
15
15
# Generated files
16
16
bin /
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import at.bitfire.dav4jvm.property.carddav.AddressData
23
23
import at.bitfire.dav4jvm.property.carddav.AddressbookDescription
24
24
import at.bitfire.dav4jvm.property.carddav.AddressbookHomeSet
25
25
import at.bitfire.dav4jvm.property.carddav.SupportedAddressData
26
+ import at.bitfire.dav4jvm.property.push.PushMessage
26
27
import at.bitfire.dav4jvm.property.push.PushSubscribe
27
28
import at.bitfire.dav4jvm.property.push.PushTransports
28
29
import at.bitfire.dav4jvm.property.push.Subscription
@@ -84,6 +85,7 @@ object PropertyRegistry {
84
85
at.bitfire.dav4jvm.property.caldav.MaxResourceSize .Factory ,
85
86
at.bitfire.dav4jvm.property.carddav.MaxResourceSize .Factory ,
86
87
Owner .Factory ,
88
+ PushMessage .Factory ,
87
89
PushSubscribe .Factory ,
88
90
PushTransports .Factory ,
89
91
QuotaAvailableBytes .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.push
8
+
9
+ import at.bitfire.dav4jvm.Property
10
+ import at.bitfire.dav4jvm.PropertyFactory
11
+ import at.bitfire.dav4jvm.XmlUtils
12
+ import org.xmlpull.v1.XmlPullParser
13
+
14
+ /* *
15
+ * Represents a `{DAV:Push}push-message` property.
16
+ *
17
+ * Experimental! See https://github.com/bitfireAT/webdav-push/
18
+ */
19
+ class PushMessage (
20
+ val topic : String?
21
+ ): Property {
22
+
23
+ companion object {
24
+
25
+ @JvmField
26
+ val NAME = Property .Name (NS_WEBDAV_PUSH , " push-message" )
27
+
28
+ }
29
+
30
+
31
+ object Factory: PropertyFactory {
32
+
33
+ override fun getName () = NAME
34
+
35
+ override fun create (parser : XmlPullParser ) =
36
+ PushMessage (XmlUtils .readTextProperty(parser, Topic .NAME ))
37
+
38
+ }
39
+
40
+ }
You can’t perform that action at this time.
0 commit comments