2023-09-26 09:54:40 +00:00
|
|
|
package ent
|
|
|
|
|
|
|
|
import (
|
2024-08-01 23:04:28 +00:00
|
|
|
"github.com/reiver/go-jsonint"
|
2024-08-01 22:29:50 +00:00
|
|
|
"github.com/reiver/go-opt"
|
2024-08-01 23:59:52 +00:00
|
|
|
"github.com/reiver/go-nul"
|
2023-09-26 09:54:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Poll struct {
|
2024-08-08 16:07:30 +00:00
|
|
|
ID opt.Optional[string] `json:"id,omitempty"`
|
|
|
|
ExpiresAt nul.Nullable[string] `json:"expires_at,omitempty"`
|
|
|
|
Expired opt.Optional[bool] `json:"expired,omitempty"`
|
|
|
|
Multiple opt.Optional[bool] `json:"multiple,omitempty"`
|
|
|
|
VotesCount opt.Optional[jsonint.Int] `json:"votes_count,omitempty"`
|
|
|
|
VotersCount opt.Optional[jsonint.Int] `json:"voters_count,omitempty"`
|
|
|
|
Options []PollOption `json:"options,omitempty"`
|
|
|
|
Emojis []CustomEmoji `json:"emojis,omitempty"`
|
|
|
|
Voted opt.Optional[bool] `json:"voted,omitempty"`
|
2024-08-08 19:46:59 +00:00
|
|
|
OwnVotes []jsonint.Int `json:"own_votes,omitempty"`
|
2023-09-26 09:54:40 +00:00
|
|
|
}
|