Skip to content

Commit

Permalink
Add experimental note to Push KDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Apr 8, 2024
1 parent d3664ad commit f442808
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import at.bitfire.dav4jvm.XmlUtils.propertyName
import org.xmlpull.v1.XmlPullParser
import java.time.Instant

/**
* Represents a `{DAV:Push}push-subscribe` property.
*
* Experimental! See https://github.com/bitfireAT/webdav-push/
*/
class PushSubscribe: Property {

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import at.bitfire.dav4jvm.XmlUtils
import at.bitfire.dav4jvm.XmlUtils.propertyName
import org.xmlpull.v1.XmlPullParser

/**
* Represents a `{DAV:Push}push-transports` property.
*
* Experimental! See https://github.com/bitfireAT/webdav-push/
*/
class PushTransports private constructor(
val transports: Set<Property.Name>
): Property {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser

/**
* Represents a `{DAV:Push}subscription` property.
*
* Experimental! See https://github.com/bitfireAT/webdav-push/
*/
class Subscription private constructor(
val webPushSubscription: WebPushSubscription
): Property {
Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/property/push/Topic.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser

/**
* Represents a `{DAV:Push}topic` property.
*
* Experimental! See https://github.com/bitfireAT/webdav-push/
*/
class Topic private constructor(
val topic: String
): Property {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser

/**
* Represents a `{DAV:Push}web-push-subscription` property.
*
* Experimental! See https://github.com/bitfireAT/webdav-push/
*/
class WebPushSubscription: Property {

companion object {
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/at/bitfire/dav4jvm/property/push/namespace.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ package at.bitfire.dav4jvm.property.push
/**
* XML namespace of WebDAV-Push (draft), see:
* https://github.com/bitfireAT/webdav-push/
*
* Experimental!
*/
const val NS_WEBDAV_PUSH = "DAV:Push"

0 comments on commit f442808

Please sign in to comment.