haflways
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user