blob: 15fd77966865c1be14a6660d4ec2a7e5a4c413e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/***************************************************************************************************
* Copyright © All Contributors. See LICENSE and AUTHORS in the root directory for details.
**************************************************************************************************/
package at.bitfire.vcard4android.property
import ezvcard.parameter.EmailType
import ezvcard.parameter.RelatedType
import ezvcard.parameter.TelephoneType
/**
* Custom TYPE parameter definitions
*/
object CustomType {
const val HOME = "home"
const val WORK = "work"
object Email {
val MOBILE = EmailType.get("x-mobile")
}
object Im {
// https://datatracker.ietf.org/doc/html/draft-daboo-vcard-service-type
const val PARAMETER_SERVICE_TYPE = "X-SERVICE-TYPE"
const val PARAMETER_SERVICE_TYPE_ALT = "SERVICE-TYPE"
}
object Nickname {
const val INITIALS = "x-initials"
const val MAIDEN_NAME = "x-maiden-name"
const val SHORT_NAME = "x-short-name"
}
object Phone {
val ASSISTANT = TelephoneType.get("x-assistant")!!
val CALLBACK = TelephoneType.get("x-callback")!!
val COMPANY_MAIN = TelephoneType.get("x-company_main")!!
val MMS = TelephoneType.get("x-mms")!!
val RADIO = TelephoneType.get("x-radio")!!
}
object Related {
val ASSISTANT = RelatedType.get("assistant")
val BROTHER = RelatedType.get("brother")
val DOMESTIC_PARTNER = RelatedType.get("domestic-partner")
val FATHER = RelatedType.get("father")
val MANAGER = RelatedType.get("manager")
val MOTHER = RelatedType.get("mother")
val PARTNER = RelatedType.get("partner")
val REFERRED_BY = RelatedType.get("referred-by")
val SISTER = RelatedType.get("sister")
val OTHER = RelatedType.get("other")
}
object Url {
const val TYPE_HOMEPAGE = "x-homepage"
const val TYPE_BLOG = "x-blog"
const val TYPE_PROFILE = "x-profile"
const val TYPE_FTP = "x-ftp"
}
}
|