diff --git a/Sources/XXClient/Functions/GetNotificationsReport.swift b/Sources/XXClient/Functions/GetNotificationsReport.swift index 0b5d31f8d5ffb7fc0f9f4cd67d6c2b6a0ec11aa1..b545d663ee3562a785ea122ae9c723b326300f3a 100644 --- a/Sources/XXClient/Functions/GetNotificationsReport.swift +++ b/Sources/XXClient/Functions/GetNotificationsReport.swift @@ -2,25 +2,25 @@ import Bindings import XCTestDynamicOverlay public struct GetNotificationsReport { - public var run: (Int, String, Data) throws -> NotificationReport + public var run: (Int, String, MessageServiceList) throws -> NotificationReport public func callAsFunction( e2eId: Int, notificationCSV: String, - marshaledServices: Data + services: MessageServiceList ) throws -> NotificationReport { - try run(e2eId, notificationCSV, marshaledServices) + try run(e2eId, notificationCSV, services) } } extension GetNotificationsReport { public static func live() -> GetNotificationsReport { - GetNotificationsReport { e2eId, notificationCSV, marshaledServices in + GetNotificationsReport { e2eId, notificationCSV, services in var error: NSError? let result = BindingsGetNotificationsReport( e2eId, notificationCSV, - marshaledServices, + try services.encode(), &error ) if let error = error {