UNPKG

nativescript-contacts

Version:

A NativeScript module providing easy access to iOS and android contact directory. Pick a contact, update date, or add a new one!

52 lines (42 loc) 1.12 kB
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;