-
Notifications
You must be signed in to change notification settings - Fork 32
/
contact-model-common.js
51 lines (42 loc) · 1.09 KB
/
contact-model-common.js
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
var helper = require("./contact-helper");
var Contact = (function () {
function Contact() {
this.id = "";
this.name = {
given: "",
middle: "",
family: "",
prefix: "",
suffix: "",
displayname: "",
phonetic : {
given: "",
middle: "",
family: ""
}
}
this.organization = {
name: "",
jobTitle: "",
department: "",
}
this.nickname = "";
this.notes = "";
this.photo = null;
this.urls = [];
this.phoneNumbers = [];
this.emailAddresses = [];
this.postalAddresses = [];
}
Contact.prototype.initializeFromNative = function(nativeData,contactFields) {
// Abstract Method
};
Contact.prototype.save = function() {
// Abstract Method
};
Contact.prototype.delete = function() {
// Abstract Method
};
return Contact;
})();
module.exports = Contact;