Skip to content

Commit

Permalink
Fixed constructors
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora Gras <[email protected]>
  • Loading branch information
ArnyminerZ committed Dec 5, 2024
1 parent d7c2051 commit 441d0de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ package at.bitfire.dav4jvm.property.webdav
import at.bitfire.dav4jvm.Property
import org.xmlpull.v1.XmlPullParser

class GroupMembership: HrefListProperty(emptyList()) {
class GroupMembership(
override val hrefs: List<String>
): HrefListProperty(hrefs) {

companion object {

Expand All @@ -23,7 +25,7 @@ class GroupMembership: HrefListProperty(emptyList()) {

override fun getName() = NAME

override fun create(parser: XmlPullParser) = create(parser) { GroupMembership() }
override fun create(parser: XmlPullParser) = create(parser, ::GroupMembership)

}

Expand Down
6 changes: 4 additions & 2 deletions src/main/kotlin/at/bitfire/dav4jvm/property/webdav/Owner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ package at.bitfire.dav4jvm.property.webdav
import at.bitfire.dav4jvm.Property
import org.xmlpull.v1.XmlPullParser

class Owner: HrefListProperty(emptyList()) {
data class Owner(
override val hrefs: List<String>
): HrefListProperty(hrefs) {

companion object {

Expand All @@ -23,7 +25,7 @@ class Owner: HrefListProperty(emptyList()) {

override fun getName() = NAME

override fun create(parser: XmlPullParser) = create(parser) { Owner() }
override fun create(parser: XmlPullParser) = create(parser, ::Owner)

}

Expand Down

0 comments on commit 441d0de

Please sign in to comment.