Skip to content
Snippets Groups Projects
Session+Notifications.swift 278 B
Newer Older
Ahmed Shehata's avatar
Ahmed Shehata committed
import Foundation

Bruno Muniz's avatar
Bruno Muniz committed
extension Session {
Ahmed Shehata's avatar
Ahmed Shehata committed
    public func registerNotifications(_ token: Data) throws {
        try client.bindings.registerNotifications(token)
Bruno Muniz's avatar
Bruno Muniz committed
    }

    public func unregisterNotifications() throws {
        try client.bindings.unregisterNotifications()
    }
}