Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

784 B
Raw Blame
package events

import (
	"time"

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

	"github.com/google/uuid"
)

// EventTypeMessagePhoneDelivered is emitted when the phone delivers a message
const EventTypeMessagePhoneDelivered = "message.phone.delivered"

// MessagePhoneDeliveredPayload is the payload of the EventTypeMessagePhoneDelivered event
type MessagePhoneDeliveredPayload struct {
	ID        uuid.UUID       `json:"id"`
	Owner     string          `json:"owner"`
	Contact   string          `json:"contact"`
	RequestID *string         `json:"request_id"`
	UserID    entities.UserID `json:"user_id"`
	Encrypted bool            `json:"encrypted"`
	Timestamp time.Time       `json:"timestamp"`
	Content   string          `json:"content"`
	SIM       entities.SIM    `json:"sim"`
}