Skip to content

Commit

Permalink
Merge pull request #3 from phanhai27/main
Browse files Browse the repository at this point in the history
Create event types for the library
  • Loading branch information
AchoArnold authored Jun 12, 2024
2 parents 64cfd7f + 6d295a7 commit 170c95a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions event_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package httpsms

// EventTypeMessagePhoneReceived is emitted when a new message is received by a mobile phone
const EventTypeMessagePhoneReceived = "message.phone.received"

// EventTypeMessagePhoneSent is emitted when the phone sends a message
const EventTypeMessagePhoneSent = "message.phone.sent"

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

// EventTypeMessageSendFailed is emitted when the phone could not send
const EventTypeMessageSendFailed = "message.send.failed"

// EventTypeMessageSendExpired is emitted when the phone a message expires
const EventTypeMessageSendExpired = "message.send.expired"

// EventTypePhoneHeartbeatOffline is emitted when the phone is missing a heartbeat
const EventTypePhoneHeartbeatOffline = "phone.heartbeat.offline"

// EventTypePhoneHeartbeatOnline is emitted when the phone is missing a heartbeat
const EventTypePhoneHeartbeatOnline = "phone.heartbeat.online"

// EventTypeMessageCallMissed is emitted when a new message is sent
const EventTypeMessageCallMissed = "message.call.missed"

0 comments on commit 170c95a

Please sign in to comment.