mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
96 lines
1.8 KiB
Java
96 lines
1.8 KiB
Java
package com.commafeed.frontend.model;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
import com.wordnik.swagger.annotations.ApiClass;
|
|
import com.wordnik.swagger.annotations.ApiProperty;
|
|
|
|
@SuppressWarnings("serial")
|
|
@XmlRootElement
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
@ApiClass("User information")
|
|
public class UserModel implements Serializable {
|
|
|
|
@ApiProperty(value = "user id", required = true)
|
|
private Long id;
|
|
|
|
@ApiProperty(value = "user name", required = true)
|
|
private String name;
|
|
|
|
@ApiProperty("user email, if any")
|
|
private String email;
|
|
|
|
@ApiProperty("api key")
|
|
private String apiKey;
|
|
|
|
@ApiProperty(value = "user password, never returned by the api")
|
|
private String password;
|
|
|
|
@ApiProperty(value = "account status")
|
|
private boolean enabled;
|
|
|
|
@ApiProperty(value = "user is admin")
|
|
private boolean admin;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public boolean isAdmin() {
|
|
return admin;
|
|
}
|
|
|
|
public void setAdmin(boolean admin) {
|
|
this.admin = admin;
|
|
}
|
|
|
|
public boolean isEnabled() {
|
|
return enabled;
|
|
}
|
|
|
|
public void setEnabled(boolean enabled) {
|
|
this.enabled = enabled;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public String getApiKey() {
|
|
return apiKey;
|
|
}
|
|
|
|
public void setApiKey(String apiKey) {
|
|
this.apiKey = apiKey;
|
|
}
|
|
|
|
}
|