Class SmsNotificationChannel
java.lang.Object
io.leandev.appfuse.notification.channel.SmsNotificationChannel
- All Implemented Interfaces:
NotificationChannel
SMS 通道(Phase 3):委派應用層 SmsDelivery 寄出
位址=手機號(由 Recipient.addressFor(ChannelType) 對 SMS 回傳);內容取
OutboundMessage.body(SMS 為純文字,範本鍵 notification.{type}.sms.body)。
- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SmsNotificationChannel
- Parameters:
smsDelivery- 應用層簡訊遞送
-
-
Method Details
-
type
Description copied from interface:NotificationChannel本通道處理的通道型別- Specified by:
typein interfaceNotificationChannel- Returns:
- 通道型別
-
send
Description copied from interface:NotificationChannel遞送一則訊息
實作不應拋例外表達遞送失敗,改回傳
DeliveryResult.failed(String);拋出的 runtime 例外 由NotificationOutboxDispatcher視同失敗並記錄。- Specified by:
sendin interfaceNotificationChannel- Parameters:
message- 要遞送的訊息- Returns:
- 遞送結果
-