backend/buisnesslogic/src/main/java/com/plannaplan/models/UserApiResponse.java

48 lines
1.0 KiB
Java
Raw Normal View History

2020-12-31 13:45:07 +01:00
package com.plannaplan.models;
/**
* Model to keep data from /services/users/user response called in
* UsosApiService
*/
public class UserApiResponse {
private String name;
private String surname;
public UserApiResponse() {
}
2021-01-15 15:54:17 +01:00
/**
* @return user's Surname
*/
2020-12-31 13:45:07 +01:00
public String getSurname() {
return surname;
}
2021-01-15 15:54:17 +01:00
/**
* setter for name. Reson to have setters for this class is for case if there
* would be name and no surname or otherwise
*
* @param surname name to set that was obtained by api request
*/
2020-12-31 13:45:07 +01:00
public void setSurname(String surname) {
this.surname = surname;
}
2021-01-15 15:54:17 +01:00
/**
* @return user's Name
*/
2020-12-31 13:45:07 +01:00
public String getName() {
return name;
}
2021-01-15 15:54:17 +01:00
/**
* setter for surname. Reson to have setters for this class is for case if there
* would be name and no surname or otherwise
*
2021-01-15 16:24:29 +01:00
* @param name name to set that was obtained by api request
2021-01-15 15:54:17 +01:00
*/
2020-12-31 13:45:07 +01:00
public void setName(String name) {
this.name = name;
}
}