Files
Athou_commafeed/src/main/java/com/commafeed/frontend/model/Settings.java

118 lines
2.9 KiB
Java
Raw Normal View History

2013-03-23 19:46:09 +01:00
package com.commafeed.frontend.model;
import java.io.Serializable;
2013-04-15 14:47:37 +02:00
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
2013-04-17 07:50:25 +02:00
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
2013-03-25 12:24:00 +01:00
@SuppressWarnings("serial")
2013-04-15 14:47:37 +02:00
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
2013-04-17 07:50:25 +02:00
@ApiClass("User settings")
2013-03-23 19:46:09 +01:00
public class Settings implements Serializable {
@ApiProperty(value = "user's preferred language, english if none")
private String language;
2013-04-17 07:50:25 +02:00
@ApiProperty(value = "user reads all entries or unread entries only", allowableValues = "all,unread", required = true)
2013-03-23 19:46:09 +01:00
private String readingMode;
2013-04-17 07:50:25 +02:00
@ApiProperty(value = "user reads entries in ascending or descending order", allowableValues = "asc,desc", required = true)
2013-04-10 10:28:48 +02:00
private String readingOrder;
2013-04-17 07:50:25 +02:00
2013-05-04 21:12:51 +02:00
@ApiProperty(value = "user viewing mode, either title-only or expande view", allowableValues = "title,expanded", required = true)
private String viewMode;
2013-04-17 07:50:25 +02:00
@ApiProperty(value = "user wants category and feeds with no unread entries shown", required = true)
private boolean showRead;
2013-04-17 07:50:25 +02:00
2013-05-01 18:06:18 +02:00
@ApiProperty(value = "user wants social buttons (facebook, twitter, ...) shown", required = true)
private boolean socialButtons;
@ApiProperty(value = "In expanded view, scroll through entries mark them as read", required = true)
private boolean scrollMarks;
2013-05-28 22:40:54 +02:00
@ApiProperty(value = "user's selected theme")
private String theme;
2013-04-17 07:50:25 +02:00
@ApiProperty(value = "user's custom css for the website")
2013-04-04 11:36:24 +02:00
private String customCss;
2013-03-23 19:46:09 +01:00
public String getReadingMode() {
return readingMode;
}
public void setReadingMode(String readingMode) {
this.readingMode = readingMode;
}
2013-04-04 11:36:24 +02:00
public String getCustomCss() {
return customCss;
}
public void setCustomCss(String customCss) {
this.customCss = customCss;
}
2013-04-10 10:28:48 +02:00
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;
}
2013-05-01 18:06:18 +02:00
public boolean isSocialButtons() {
return socialButtons;
}
public void setSocialButtons(boolean socialButtons) {
this.socialButtons = socialButtons;
}
2013-05-04 21:12:51 +02:00
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;
}
2013-05-28 22:40:54 +02:00
public String getTheme() {
return theme;
}
public void setTheme(String theme) {
this.theme = theme;
}
2013-03-23 19:46:09 +01:00
}