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