...
1 package models
2
3 type BoardSettings struct {
4 CustomPages []string `json:"customPages"`
5 Announcement RawAndMarkdownMessage `json:"announcement"`
6 AllowedFileTypes AllowedFileTypes `json:"allowedFileTypes"`
7 MaxFiles int `json:"maxFiles"`
8 CaptchaMode int `json:"captchaMode"`
9 ForceAnon bool `json:"forceAnon"`
10 SageOnlyEmail bool `json:"sageOnlyEmail"`
11 CustomFlags bool `json:"customFlags"`
12 ForceThreadMessage bool `json:"forceThreadMessage"`
13 ForceThreadFile bool `json:"forceThreadFile"`
14 ForceThreadSubject bool `json:"forceThreadSubject"`
15 DisableReplySubject bool `json:"disableReplySubject"`
16 MinThreadMessageLength int `json:"minThreadMessageLength"`
17 MinReplyMessageLength int `json:"minReplyMessageLength"`
18 MaxThreadMessageLength int `json:"maxThreadMessageLength"`
19 MaxReplyMessageLength int `json:"maxReplyMessageLength"`
20 DefaultName string `json:"defaultName"`
21 }
22
23 type AllowedFileTypes struct {
24 AnimatedImage bool `json:"animatedImage"`
25 Image bool `json:"image"`
26 Video bool `json:"video"`
27 Audio bool `json:"audio"`
28 Other bool `json:"other"`
29 }
30
31 type GlobalSettings struct {
32 CaptchaOptions CaptchaOptions `json:"captchaOptions"`
33 }
34
35 type CaptchaOptions struct {
36 Type string `json:"type"`
37 Grid Grid `json:"grid,omitempty"`
38 }
39
40 type Grid struct {
41 Size int `json:"size"`
42 Question string `json:"question"`
43 }
44
View as plain text