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 {
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
@ApiProperty(value = "user wants category and feeds with no unread entries shown", required = true)
|
2013-04-12 09:57:18 +02:00
|
|
|
private boolean showRead;
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2013-04-12 09:57:18 +02:00
|
|
|
public boolean isShowRead() {
|
|
|
|
|
return showRead;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setShowRead(boolean showRead) {
|
|
|
|
|
this.showRead = showRead;
|
|
|
|
|
}
|
|
|
|
|
|
2013-03-23 19:46:09 +01:00
|
|
|
}
|