From 2003f58804f172a1299e4c852c6e418d1300a5b4 Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Tue, 8 Nov 2022 10:35:50 +0100 Subject: [PATCH] Use MessageServiceList in GetNotificationsReport --- .../XXClient/Functions/GetNotificationsReport.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/XXClient/Functions/GetNotificationsReport.swift b/Sources/XXClient/Functions/GetNotificationsReport.swift index 0b5d31f8..b545d663 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 { -- GitLab