2018-10-21 18:19:00 +05:30
|
|
|
package com.baeldung.akkahttp;
|
|
|
|
|
|
|
|
public class User {
|
|
|
|
|
2018-12-16 20:42:33 +01:00
|
|
|
private final Long id;
|
|
|
|
|
2018-10-21 18:19:00 +05:30
|
|
|
private final String name;
|
|
|
|
|
|
|
|
public User() {
|
|
|
|
this.name = "";
|
2018-12-16 20:42:33 +01:00
|
|
|
this.id = null;
|
2018-10-21 18:19:00 +05:30
|
|
|
}
|
|
|
|
|
2018-12-16 20:42:33 +01:00
|
|
|
public User(Long id, String name) {
|
2018-10-21 18:19:00 +05:30
|
|
|
this.name = name;
|
2018-12-16 20:42:33 +01:00
|
|
|
this.id = id;
|
2018-10-21 18:19:00 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
2018-12-16 20:42:33 +01:00
|
|
|
public Long getId() {
|
|
|
|
return id;
|
2018-10-21 18:19:00 +05:30
|
|
|
}
|
|
|
|
}
|