-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContactField.js
More file actions
42 lines (36 loc) · 856 Bytes
/
ContactField.js
File metadata and controls
42 lines (36 loc) · 856 Bytes
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
var Type =
{
PHONE : "PHONE",
ADDRESS : "ADDRESS",
EMAIL : "EMAIL",
SOCIAL_NETWORK : "SOCIAL_NETWORK"
};
var Kind =
{
WORK : "WORK",
HOME : "HOME",
MOBILE : "MOBILE",
WORK_FAX : "WORK_FAX",
FACEBOOK : "FACEBOOK",
SKYPE : "SKYPE",
TWITTER : "TWITTER",
LINKED_IN : "LINKED_IN"
};
function Value(string, streetAddress, extendedAddress, city, state, postalCode, country) {
this.string = string;
this.streetAddress = streetAddress || null;
this.extendedAddress = extendedAddress || null;
this.city = city || null;
this.state = state || null;
this.postalCode = postalCode || null;
this.country = country || null;
}
function ContactField(type, kind, value) {
this.type = type;
this.kind = kind;
this.value = value;
}
module.exports = ContactField;
module.exports.Type = Type;
module.exports.Kind = Kind;
module.exports.Value = Value;