mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
use lombok data instead of getters and setters
This commit is contained in:
@@ -6,6 +6,8 @@ import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import com.wordnik.swagger.annotations.ApiClass;
|
||||
import com.wordnik.swagger.annotations.ApiProperty;
|
||||
|
||||
@@ -13,6 +15,7 @@ import com.wordnik.swagger.annotations.ApiProperty;
|
||||
@XmlRootElement
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@ApiClass("User settings")
|
||||
@Data
|
||||
public class Settings implements Serializable {
|
||||
|
||||
@ApiProperty(value = "user's preferred language, english if none")
|
||||
@@ -42,76 +45,4 @@ public class Settings implements Serializable {
|
||||
@ApiProperty(value = "user's custom css for the website")
|
||||
private String customCss;
|
||||
|
||||
public String getReadingMode() {
|
||||
return readingMode;
|
||||
}
|
||||
|
||||
public void setReadingMode(String readingMode) {
|
||||
this.readingMode = readingMode;
|
||||
}
|
||||
|
||||
public String getCustomCss() {
|
||||
return customCss;
|
||||
}
|
||||
|
||||
public void setCustomCss(String customCss) {
|
||||
this.customCss = customCss;
|
||||
}
|
||||
|
||||
public String getReadingOrder() {
|
||||
return readingOrder;
|
||||
}
|
||||
|
||||
public void setReadingOrder(String readingOrder) {
|
||||
this.readingOrder = readingOrder;
|
||||
}
|
||||
|
||||
public boolean isShowRead() {
|
||||
return showRead;
|
||||
}
|
||||
|
||||
public void setShowRead(boolean showRead) {
|
||||
this.showRead = showRead;
|
||||
}
|
||||
|
||||
public boolean isSocialButtons() {
|
||||
return socialButtons;
|
||||
}
|
||||
|
||||
public void setSocialButtons(boolean socialButtons) {
|
||||
this.socialButtons = socialButtons;
|
||||
}
|
||||
|
||||
public String getViewMode() {
|
||||
return viewMode;
|
||||
}
|
||||
|
||||
public void setViewMode(String viewMode) {
|
||||
this.viewMode = viewMode;
|
||||
}
|
||||
|
||||
public boolean isScrollMarks() {
|
||||
return scrollMarks;
|
||||
}
|
||||
|
||||
public void setScrollMarks(boolean scrollMarks) {
|
||||
this.scrollMarks = scrollMarks;
|
||||
}
|
||||
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
public void setLanguage(String language) {
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user