19 lines
450 B
Java
19 lines
450 B
Java
|
package tk.antoine_roux.wiki.model.response;
|
||
|
|
||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||
|
|
||
|
/**
|
||
|
* Json response object for register endpoint
|
||
|
*/
|
||
|
public class RegisterResponse {
|
||
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||
|
String id;
|
||
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||
|
String token;
|
||
|
|
||
|
public RegisterResponse(String id, String token) {
|
||
|
this.id = id;
|
||
|
this.token = token;
|
||
|
}
|
||
|
}
|