package de.reneruck.contactor.models;

/**
 * Created by reneruck on 19/06/15.
 */
public class Contact {

    private int id = -1;
    private String firstName;
    private String lastName;
    private String email;
    private String phoneWork;
    private String phonePrivate;

    public String getName() {
        return firstName + " " + lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public String getEmail() {
        return email;
    }

    public String getPhoneWork() {
        return phoneWork;
    }

    public String getPhonePrivate() {
        return phonePrivate;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPhoneWork(String phoneWork) {
        this.phoneWork = phoneWork;
    }

    public void setPhonePrivate(String phonePrivate) {
        this.phonePrivate = phonePrivate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}

@@ -274,16 +274,338 @@
 ivate;%0A%0A
+    public Contact(int id, String firstName, String lastName, String email, String phoneWork, String phonePrivate) %7B%0A        this.id = id;%0A        this.firstName = firstName;%0A        this.lastName = lastName;%0A        this.email = email;%0A        this.phoneWork = phoneWork;%0A        this.phonePrivate = phonePrivate;%0A    %7D%0A%0A
     publ

define constructor with all possible fields in its signature