Skip to content
Snippets Groups Projects
Commit 2003f588 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Use MessageServiceList in GetNotificationsReport

parent ad4a165a
No related branches found
No related tags found
2 merge requests!138Notifications,!102Release 1.0.0
...@@ -2,25 +2,25 @@ import Bindings ...@@ -2,25 +2,25 @@ import Bindings
import XCTestDynamicOverlay import XCTestDynamicOverlay
public struct GetNotificationsReport { public struct GetNotificationsReport {
public var run: (Int, String, Data) throws -> NotificationReport public var run: (Int, String, MessageServiceList) throws -> NotificationReport
public func callAsFunction( public func callAsFunction(
e2eId: Int, e2eId: Int,
notificationCSV: String, notificationCSV: String,
marshaledServices: Data services: MessageServiceList
) throws -> NotificationReport { ) throws -> NotificationReport {
try run(e2eId, notificationCSV, marshaledServices) try run(e2eId, notificationCSV, services)
} }
} }
extension GetNotificationsReport { extension GetNotificationsReport {
public static func live() -> GetNotificationsReport { public static func live() -> GetNotificationsReport {
GetNotificationsReport { e2eId, notificationCSV, marshaledServices in GetNotificationsReport { e2eId, notificationCSV, services in
var error: NSError? var error: NSError?
let result = BindingsGetNotificationsReport( let result = BindingsGetNotificationsReport(
e2eId, e2eId,
notificationCSV, notificationCSV,
marshaledServices, try services.encode(),
&error &error
) )
if let error = error { if let error = error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment