2022-01-06 08:00:24 +00:00
|
|
|
package messages
|
|
|
|
|
2023-03-28 22:09:06 +00:00
|
|
|
import (
|
|
|
|
"github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
"github.com/zitadel/zitadel/internal/notification/channels"
|
|
|
|
)
|
2022-01-06 08:00:24 +00:00
|
|
|
|
|
|
|
var _ channels.Message = (*SMS)(nil)
|
|
|
|
|
|
|
|
type SMS struct {
|
|
|
|
SenderPhoneNumber string
|
|
|
|
RecipientPhoneNumber string
|
|
|
|
Content string
|
2023-03-28 22:09:06 +00:00
|
|
|
TriggeringEvent eventstore.Event
|
2022-01-06 08:00:24 +00:00
|
|
|
}
|
|
|
|
|
2023-03-28 22:09:06 +00:00
|
|
|
func (msg *SMS) GetContent() (string, error) {
|
|
|
|
return msg.Content, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (msg *SMS) GetTriggeringEvent() eventstore.Event {
|
|
|
|
return msg.TriggeringEvent
|
2022-01-06 08:00:24 +00:00
|
|
|
}
|