go-mstdn/ent/notification.go

19 lines
501 B
Go
Raw Permalink Normal View History

2023-09-26 19:55:34 +00:00
package ent
import (
"github.com/reiver/go-opt"
2023-09-26 19:55:34 +00:00
)
// Notification represents a Mastodon API "Notification".
//
// See:
// https://docs.joinmastodon.org/entities/Notification/
type Notification struct {
ID opt.Optional[string] `json:"id"`
Type opt.Optional[string] `json:"type"`
CreatedAt opt.Optional[string] `json:"created_at"`
Account Account `json:"account"`
Status opt.Optional[Status] `json:"account"`
Report opt.Optional[Report] `json:"report"`
}