compat methods

This commit is contained in:
2022-11-20 01:28:32 +01:00
parent b56c021356
commit 728b12107f
10 changed files with 609 additions and 262 deletions

View File

@@ -1,20 +1,11 @@
package models
type CompatMessage struct {
Title string `json:"title"`
Body string `json:"body"`
Priority int `json:"priority"`
Timestamp int64 `json:"timestamp"`
UserMessageID string `json:"usr_msg_id"`
SCNMessageID string `json:"scn_msg_id"`
}
type ShortCompatMessage struct {
Title string `json:"title"`
Body string `json:"body"`
Trimmed bool `json:"trimmed"`
Priority int `json:"priority"`
Timestamp int64 `json:"timestamp"`
UserMessageID string `json:"usr_msg_id"`
SCNMessageID string `json:"scn_msg_id"`
Title string `json:"title"`
Body string `json:"body"`
Priority int `json:"priority"`
Timestamp int64 `json:"timestamp"`
UserMessageID *string `json:"usr_msg_id"`
SCNMessageID int64 `json:"scn_msg_id"`
Trimmed *bool `json:"trimmed"`
}