mirror of
https://github.com/status-im/status-go.git
synced 2025-02-11 06:16:43 +00:00
27 lines
625 B
Go
27 lines
625 B
Go
|
package protocol
|
||
|
|
||
|
import (
|
||
|
"crypto/ecdsa"
|
||
|
"database/sql"
|
||
|
)
|
||
|
|
||
|
type PushNotificationPersistence struct {
|
||
|
db *sql.DB
|
||
|
}
|
||
|
|
||
|
func NewPushNotificationPersistence(db *sql.DB) *PushNotificationPersistence {
|
||
|
return &PushNotificationPersistence{db: db}
|
||
|
}
|
||
|
|
||
|
func (p *PushNotificationPersistence) TrackPushNotification(messageID []byte) error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (p *PushNotificationPersistence) ShouldSentNotificationFor(publicKey *ecdsa.PublicKey, messageID []byte) (bool, error) {
|
||
|
return false, nil
|
||
|
}
|
||
|
func (p *PushNotificationPersistence) PushNotificationSentFor(publicKey *ecdsa.PublicKey, messageID []byte) error {
|
||
|
|
||
|
return nil
|
||
|
}
|