Dan Anglin
3d20adfa57
- Replace .reuse/dep5 with the new REUSE.toml file. - Add licensing information to REUSE.toml and remove the licensing headers from the source files.
23 lines
595 B
Go
23 lines
595 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Poll struct {
|
|
Emojis []Emoji `json:"emojis"`
|
|
Expired bool `json:"expired"`
|
|
Voted bool `json:"voted"`
|
|
Multiple bool `json:"multiple"`
|
|
ExpiredAt time.Time `json:"expires_at"`
|
|
ID string `json:"id"`
|
|
OwnVotes []int `json:"own_votes"`
|
|
VotersCount int `json:"voters_count"`
|
|
VotesCount int `json:"votes_count"`
|
|
Options []PollOption `json:"options"`
|
|
}
|
|
|
|
type PollOption struct {
|
|
Title string `json:"title"`
|
|
VotesCount int `json:"votes_count"`
|
|
}
|