This commit is contained in:
bel
2021-08-05 23:45:11 -06:00
parent 2763b68bc4
commit fc088ec240
4 changed files with 32 additions and 10 deletions

View File

@@ -7,15 +7,16 @@ import (
)
type List struct {
Name string `json:"name"`
UUID string `json:"id"`
Sort int `json:"sort"`
Published int `json:"published"`
ShowCompl int `json:"showCompl"`
ShowNotes int `json:"showNotes"`
Hidden int `json:"hidden"`
Max int `json:"max"`
Index int `json:"index"`
Name string `json:"name"`
UUID string `json:"id"`
Sort int `json:"sort"`
Published int `json:"published"`
ShowCompl int `json:"showCompl"`
ShowLooping int `json:"showLooping"`
ShowNotes int `json:"showNotes"`
Hidden int `json:"hidden"`
Max int `json:"max"`
Index int `json:"index"`
}
func New(r *http.Request) (*List, error) {
@@ -41,6 +42,10 @@ func (l *List) SetShowCompl(state bool) {
set(state, &l.ShowCompl)
}
func (l *List) SetShowLooping(state bool) {
set(state, &l.ShowLooping)
}
func (l *List) SetShowNotes(state bool) {
set(state, &l.ShowNotes)
}