Files
hideck/internal/device/notifier.go
T
yibaiba 49f97a50b5 feat(device): record VoWiFi MWI on runtime DTOs and teardown
Keep the latest RFC 3842 snapshot on the pool, attach it to device
runtime JSON, and clear it when VoWiFi is disabled. Call-waiting
notify is forwarded from the same dispatcher.
2026-08-31 00:46:58 +08:00

21 lines
646 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package device
import "time"
// Notifier 定义了设备池需要的事件通知接口,
// 用于解耦具体的通知实现(如 Telegram 或 Webhook)
type Notifier interface {
NotifySMS(deviceID, sender, content string, timestamp time.Time)
NotifyIPRotated(deviceID, oldIP, newIP string, duration time.Duration)
NotifyRaw(msg string)
}
type SMSSourceNotifier interface {
NotifySMSWithSource(deviceID, sender, content, source string, timestamp time.Time)
}
// IncomingCallNotifier is implemented by host notifiers that can surface a ring.
type IncomingCallNotifier interface {
NotifyIncomingCall(deviceID, caller, callee string)
}