@@ -60,15 +60,16 @@ const (
6060 MessageEventNameFailed = MessageEventName ("FAILED" )
6161)
6262
63+ // SIM is the SIM card to use to send the message
6364type SIM string
6465
6566const (
66- // SIM_1 use the SIM card in slot 1 to send the message
67- SIM_1 = SIM ("SIM1" )
68- // SIM_2 use the SIM card in slot 2 to send the message
69- SIM_2 = SIM ("SIM2" )
70- // SIM_DEFAULT use the SIM card configured as default communication card to send the message
71- SIM_DEFAULT = SIM ("DEFAULT" )
67+ // SIM1 use the SIM card in slot 1 to send the message
68+ SIM1 = SIM ("SIM1" )
69+ // SIM2 use the SIM card in slot 2 to send the message
70+ SIM2 = SIM ("SIM2" )
71+ // SIMDefault use the SIM card configured as default communication card to send the message
72+ SIMDefault = SIM ("DEFAULT" )
7273)
7374
7475// Message represents a message sent between 2 phone numbers
@@ -80,9 +81,9 @@ type Message struct {
8081 Content string `json:"content" example:"This is a sample text message"`
8182 Type MessageType `json:"type" example:"mobile-terminated"`
8283 Status MessageStatus `json:"status" gorm:"index:idx_messages_status" example:"pending"`
83- // SIM is the type of event
84- // * ISMS : use the SIM card in slot 1
85- // * ISMS2 : use the SIM card in slot 2
84+ // SIM is the SIM card to use to send the message
85+ // * SMS1 : use the SIM card in slot 1
86+ // * SMS2 : use the SIM card in slot 2
8687 // * DEFAULT: used the default communication SIM card
8788 SIM SIM `json:"sim" example:"DEFAULT"`
8889
0 commit comments