You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
989 B
50 lines
989 B
package com.singlestone.contacts.model.dto;
|
|
|
|
import java.util.List;
|
|
|
|
import com.singlestone.contacts.model.Address;
|
|
import com.singlestone.contacts.model.Name;
|
|
import com.singlestone.contacts.model.Phone;
|
|
|
|
public class ContactDTO {
|
|
|
|
private Name name;
|
|
private Address address;
|
|
private List<String> phone;
|
|
private String email;
|
|
|
|
public void setName(Name name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Name getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setAddress(Address address) {
|
|
this.address = address;
|
|
}
|
|
|
|
public Address getAddress() {
|
|
return address;
|
|
}
|
|
|
|
public void setPhone(List<Phone> phone) {
|
|
this.phone.clear();
|
|
for (Phone p : phone) {
|
|
this.phone.add(p.getNumber());
|
|
}
|
|
}
|
|
|
|
public List<String> getPhone() {
|
|
return phone;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
}
|
|
|