-
Notifications
You must be signed in to change notification settings - Fork 0
/
contestcategory.go
78 lines (59 loc) · 1.32 KB
/
contestcategory.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package ospokemon
type ContestCategory interface {
Id() int
SetId(id int)
Name() string
SetName(name string)
Flavor() string
SetFlavor(flavor string)
Color() string
SetColor(color string)
Stat() string
SetStat(stat string)
Reactions() map[int]string
SetReactions(reactions map[int]string)
}
type BasicContestCategory struct {
ID int
NAME string
FLAVOR string
COLOR string
STAT string
REACTIONS map[int]string
}
func (cc *BasicContestCategory) Id() int {
return cc.ID
}
func (cc *BasicContestCategory) SetId(id int) {
cc.ID = id
}
func (cc *BasicContestCategory) Name() string {
return cc.NAME
}
func (cc *BasicContestCategory) SetName(name string) {
cc.NAME = name
}
func (cc *BasicContestCategory) Flavor() string {
return cc.FLAVOR
}
func (cc *BasicContestCategory) SetFlavor(flavor string) {
cc.FLAVOR = flavor
}
func (cc *BasicContestCategory) Color() string {
return cc.COLOR
}
func (cc *BasicContestCategory) SetColor(color string) {
cc.COLOR = color
}
func (cc *BasicContestCategory) Stat() string {
return cc.STAT
}
func (cc *BasicContestCategory) SetStat(stat string) {
cc.STAT = stat
}
func (cc *BasicContestCategory) Reactions() map[int]string {
return cc.REACTIONS
}
func (cc *BasicContestCategory) SetReactions(reactions map[int]string) {
cc.REACTIONS = reactions
}