File size: 735 Bytes
83a59ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package events

import (
	"time"

	"github.com/NdoleStudio/httpsms/pkg/entities"

	"github.com/google/uuid"
)

// EventTypeMessageSendRetry is emitted when the phone a message expires and is being retried
const EventTypeMessageSendRetry = "message.send.retry"

// MessageSendRetryPayload is the payload of the EventTypeMessageSendRetry event
type MessageSendRetryPayload struct {
	MessageID uuid.UUID       `json:"message_id"`
	Owner     string          `json:"owner"`
	Contact   string          `json:"contact"`
	Encrypted bool            `json:"encrypted"`
	UserID    entities.UserID `json:"user_id"`
	Timestamp time.Time       `json:"timestamp"`
	Content   string          `json:"content"`
	SIM       entities.SIM    `json:"sim"`
}