Class LineNotificationChannel
java.lang.Object
io.leandev.appfuse.notification.channel.LineNotificationChannel
- All Implemented Interfaces:
NotificationChannel
LINE 通道(Phase 3):委派應用層 LineDelivery 推播
位址=LINE userId(由 Recipient.addressFor(ChannelType) 對 LINE 回傳);內容取
OutboundMessage.body(純文字,範本鍵 notification.{type}.line.body)。
- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LineNotificationChannel
- Parameters:
lineDelivery- 應用層 LINE 推播
-
-
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:
- 遞送結果
-