Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Swift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Commits
8ecdb3b5
Commit
8ecdb3b5
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Update GetNotificationsReport
parent
72fb2e38
No related branches found
No related tags found
2 merge requests
!139
Update Bindings
,
!102
Release 1.0.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/XXClient/Functions/GetNotificationsReport.swift
+16
-20
16 additions, 20 deletions
Sources/XXClient/Functions/GetNotificationsReport.swift
with
16 additions
and
20 deletions
Sources/XXClient/Functions/GetNotificationsReport.swift
+
16
−
20
View file @
8ecdb3b5
...
@@ -2,35 +2,31 @@ import Bindings
...
@@ -2,35 +2,31 @@ import Bindings
import
XCTestDynamicOverlay
import
XCTestDynamicOverlay
public
struct
GetNotificationsReport
{
public
struct
GetNotificationsReport
{
public
var
run
:
(
Int
,
String
,
Data
)
throws
->
NotificationReport
public
var
run
:
(
String
,
MessageServiceList
)
throws
->
NotificationReport
public
func
callAsFunction
(
public
func
callAsFunction
(
e2eId
:
Int
,
notificationCSV
:
String
,
notificationCSV
:
String
,
marshaledServices
:
Data
services
:
MessageServiceList
)
throws
->
NotificationReport
{
)
throws
->
NotificationReport
{
try
run
(
e2eId
,
notificationCSV
,
marshaledS
ervices
)
try
run
(
notificationCSV
,
s
ervices
)
}
}
}
}
extension
GetNotificationsReport
{
extension
GetNotificationsReport
{
public
static
func
live
()
->
GetNotificationsReport
{
public
static
let
live
=
GetNotificationsReport
{
notificationCSV
,
services
in
GetNotificationsReport
{
e2eId
,
notificationCSV
,
marshaledServices
in
var
error
:
NSError
?
var
error
:
NSError
?
let
result
=
BindingsGetNotificationsReport
(
let
result
=
BindingsGetNotificationsReport
(
notificationCSV
,
e2eId
,
try
services
.
encode
(),
notificationCSV
,
&
error
marshaledServices
,
)
&
error
if
let
error
=
error
{
)
throw
error
if
let
error
=
error
{
throw
error
}
guard
let
result
=
result
else
{
fatalError
(
"BindingsGetNotificationsReport returned nil without providing error"
)
}
return
try
NotificationReport
.
decode
(
result
)
}
}
guard
let
result
=
result
else
{
fatalError
(
"BindingsGetNotificationsReport returned nil without providing error"
)
}
return
try
NotificationReport
.
decode
(
result
)
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment