initial commits

master
Charles Iliya Krempeaux 2023-09-27 04:55:34 +09:00
parent 96ced3daa9
commit 22d8e80737
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package ent
import (
"sourcecode.social/reiver/go-opt"
)
// 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"`
}