mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
store and use preferred language from user (#55)
This commit is contained in:
@@ -15,6 +15,9 @@ import com.wordnik.swagger.annotations.ApiProperty;
|
||||
@ApiClass("User settings")
|
||||
public class Settings implements Serializable {
|
||||
|
||||
@ApiProperty(value = "user's preferred language, english if none")
|
||||
private String language;
|
||||
|
||||
@ApiProperty(value = "user reads all entries or unread entries only", allowableValues = "all,unread", required = true)
|
||||
private String readingMode;
|
||||
|
||||
@@ -92,4 +95,12 @@ public class Settings implements Serializable {
|
||||
this.scrollMarks = scrollMarks;
|
||||
}
|
||||
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
public void setLanguage(String language) {
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user