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

Update GetNotificationsReport

parent 72fb2e38
No related branches found
No related tags found
2 merge requests!139Update Bindings,!102Release 1.0.0
......@@ -2,25 +2,22 @@ import Bindings
import XCTestDynamicOverlay
public struct GetNotificationsReport {
public var run: (Int, String, Data) throws -> NotificationReport
public var run: (String, MessageServiceList) throws -> NotificationReport
public func callAsFunction(
e2eId: Int,
notificationCSV: String,
marshaledServices: Data
services: MessageServiceList
) throws -> NotificationReport {
try run(e2eId, notificationCSV, marshaledServices)
try run(notificationCSV, services)
}
}
extension GetNotificationsReport {
public static func live() -> GetNotificationsReport {
GetNotificationsReport { e2eId, notificationCSV, marshaledServices in
public static let live = GetNotificationsReport { notificationCSV, services in
var error: NSError?
let result = BindingsGetNotificationsReport(
e2eId,
notificationCSV,
marshaledServices,
try services.encode(),
&error
)
if let error = error {
......@@ -32,7 +29,6 @@ extension GetNotificationsReport {
return try NotificationReport.decode(result)
}
}
}
extension GetNotificationsReport {
public static let unimplemented = GetNotificationsReport(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment