Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitfireAT/vcard4android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/bitfire/vcard4android/property/XAbDate.kt')
-rw-r--r--src/main/java/at/bitfire/vcard4android/property/XAbDate.kt23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/at/bitfire/vcard4android/property/XAbDate.kt b/src/main/java/at/bitfire/vcard4android/property/XAbDate.kt
new file mode 100644
index 0000000..c3de1e5
--- /dev/null
+++ b/src/main/java/at/bitfire/vcard4android/property/XAbDate.kt
@@ -0,0 +1,23 @@
+package at.bitfire.vcard4android.property
+
+import ezvcard.io.scribe.DateOrTimePropertyScribe
+import ezvcard.property.DateOrTimeProperty
+import ezvcard.util.PartialDate
+import java.util.*
+
+class XAbDate: DateOrTimeProperty {
+
+ constructor(text: String?): super(text)
+ constructor(date: Date?): super(date, false)
+ constructor(partialDate: PartialDate?): super(partialDate)
+
+
+ object Scribe : DateOrTimePropertyScribe<XAbDate>(XAbDate::class.java, "X-ABDATE") {
+
+ override fun newInstance(text: String?) = XAbDate(text)
+ override fun newInstance(calendar: Calendar?, hasTime: Boolean) = XAbDate(calendar?.time)
+ override fun newInstance(partialDate: PartialDate?) = XAbDate(partialDate)
+
+ }
+
+} \ No newline at end of file