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
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 {
......
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