2019-07-22 14:17:11 +00:00
|
|
|
package gonextcloud
|
2018-10-17 09:15:27 +00:00
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2019-07-23 07:52:34 +00:00
|
|
|
// Notification is a nextcloud notification (from notification app)
|
2018-10-17 09:15:27 +00:00
|
|
|
type Notification struct {
|
|
|
|
NotificationID int `json:"notification_id"`
|
|
|
|
App string `json:"app"`
|
|
|
|
User string `json:"user"`
|
|
|
|
Datetime time.Time `json:"datetime"`
|
|
|
|
ObjectType string `json:"object_type"`
|
|
|
|
ObjectID string `json:"object_id"`
|
|
|
|
Subject string `json:"subject"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
Link string `json:"link"`
|
|
|
|
SubjectRich string `json:"subjectRich"`
|
|
|
|
SubjectRichParameters []interface{} `json:"subjectRichParameters"`
|
|
|
|
MessageRich string `json:"messageRich"`
|
|
|
|
MessageRichParameters []interface{} `json:"messageRichParameters"`
|
|
|
|
Icon string `json:"icon"`
|
|
|
|
Actions []interface{} `json:"actions"`
|
|
|
|
}
|