2013-03-23 19:46:09 +01:00
|
|
|
package com.commafeed.frontend.model;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
2013-08-11 11:59:24 +02:00
|
|
|
import lombok.Data;
|
|
|
|
|
|
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-17 07:50:25 +02:00
|
|
|
@ApiClass("User settings")
|
2013-08-11 11:59:24 +02:00
|
|
|
@Data
|
2013-03-23 19:46:09 +01:00
|
|
|
public class Settings implements Serializable {
|
|
|
|
|
|
2013-05-11 22:49:33 +02:00
|
|
|
@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)
|
2013-04-12 09:57:18 +02:00
|
|
|
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;
|
|
|
|
|
|
2013-05-05 19:35:07 +02:00
|
|
|
@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
|
|
|
|
|
|
|
|
}
|