16 lines
381 B
Go
16 lines
381 B
Go
package mila
|
|
|
|
import "time"
|
|
|
|
// ContentState is the current display state received from BVK.
|
|
type ContentState struct {
|
|
Route string `json:"route"`
|
|
Text string `json:"str"`
|
|
Template string `json:"tpl_name"`
|
|
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
|
}
|
|
|
|
func (s ContentState) IsZero() bool {
|
|
return s.Route == "" && s.Text == "" && s.Template == ""
|
|
}
|