2013-03-23 19:46:09 +01:00
|
|
|
package com.commafeed.frontend.model;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
2015-07-09 16:03:38 +02:00
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
2013-08-11 11:59:24 +02:00
|
|
|
import lombok.Data;
|
|
|
|
|
|
2013-03-25 12:24:00 +01:00
|
|
|
@SuppressWarnings("serial")
|
2019-05-01 19:57:52 +02:00
|
|
|
@ApiModel(description = "User settings")
|
2013-08-11 11:59:24 +02:00
|
|
|
@Data
|
2013-03-23 19:46:09 +01:00
|
|
|
public class Settings implements Serializable {
|
|
|
|
|
|
2014-08-08 16:49:02 +02:00
|
|
|
@ApiModelProperty(value = "user's preferred language, english if none")
|
2013-05-11 22:49:33 +02:00
|
|
|
private String language;
|
|
|
|
|
|
2014-08-08 16:49:02 +02:00
|
|
|
@ApiModelProperty(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
|
|
|
|
2014-08-08 16:49:02 +02:00
|
|
|
@ApiModelProperty(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
|
|
|
|
2014-08-08 16:49:02 +02:00
|
|
|
@ApiModelProperty(value = "user viewing mode, either title-only or expande view", allowableValues = "title,expanded", required = true)
|
2013-05-04 21:12:51 +02:00
|
|
|
private String viewMode;
|
|
|
|
|
|
2014-08-08 16:49:02 +02:00
|
|
|
@ApiModelProperty(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
|
|
|
|
2014-08-08 16:49:02 +02:00
|
|
|
@ApiModelProperty(value = "In expanded view, scroll through entries mark them as read", required = true)
|
2013-05-05 19:35:07 +02:00
|
|
|
private boolean scrollMarks;
|
|
|
|
|
|
2014-08-08 16:49:02 +02:00
|
|
|
@ApiModelProperty(value = "user's selected theme")
|
2013-05-28 22:40:54 +02:00
|
|
|
private String theme;
|
|
|
|
|
|
2014-08-08 16:49:02 +02:00
|
|
|
@ApiModelProperty(value = "user's custom css for the website")
|
2013-04-04 11:36:24 +02:00
|
|
|
private String customCss;
|
2014-08-08 16:49:02 +02:00
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "user's preferred scroll speed when navigating between entries")
|
2013-10-03 10:40:58 +02:00
|
|
|
private int scrollSpeed;
|
2014-08-08 16:49:02 +02:00
|
|
|
|
2014-04-16 12:29:53 +02:00
|
|
|
private boolean email;
|
|
|
|
|
private boolean gmail;
|
|
|
|
|
private boolean facebook;
|
|
|
|
|
private boolean twitter;
|
|
|
|
|
private boolean googleplus;
|
|
|
|
|
private boolean tumblr;
|
|
|
|
|
private boolean pocket;
|
|
|
|
|
private boolean instapaper;
|
|
|
|
|
private boolean buffer;
|
|
|
|
|
private boolean readability;
|
2013-03-23 19:46:09 +01:00
|
|
|
|
|
|
|
|
}
|