private User from;
- private User to;
+ private Name to;
private String location;
private String date;
- public Assurance(int id, User from, User to, String location, String method, int points, String date) {
+ public Assurance(int id, User from, Name to, String location, String method, int points, String date) {
this.id = id;
this.from = from;
this.to = to;
return points;
}
- public User getTo() {
+ public Name getTo() {
return to;
}