2.1.2 • Published 8 years ago

contact-service v2.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

A simple array based service layer for address book apps

Installing:

Using:

Currently avaiable member functions:

  • getAll() --> returns all existing contacts
  • getById(id) --> returns the corresponding contact or null if not found
  • addNew(contact) --> adds the contact to the existing list of contcts with a new id
  • update(contact) --> searches with the given contact's id and replaces the existing contact
  • delete(id) --> searches with the given contact's id and deletes the same

Get all contacts:

Adding a new contact:

(Mandatory fields - first_name, last_name, email, phone, dob and city)

Deleting a contact with id:

Updating an existing contact (based on id):

(Mandatory fields - id, first_name, last_name, email, phone, dob and city)

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.12

8 years ago

2.0.11

8 years ago

2.0.10

8 years ago

2.0.9

8 years ago

2.0.8

8 years ago

2.0.7

8 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago