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
Merge requests
!139
Update Bindings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update Bindings
feature/update-bindings
into
development
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
Dariusz Rybicki
requested to merge
feature/update-bindings
into
development
2 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
XXClient
Update
Bindings.xcframework
client@121dc3f3
go version go1.19.3 darwin/arm64
Xcode 14.1 Build version 14B47b
gomobile bind target: ios,iossimulator,macos
Update
GetNotificationsReport
Edited
2 years ago
by
Dariusz Rybicki
0
0
Merge request reports
Viewing commit
8ecdb3b5
Prev
Next
Show latest version
1 file
+
16
−
20
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
8ecdb3b5
Update GetNotificationsReport
· 8ecdb3b5
Dariusz Rybicki
authored
2 years ago
Sources/XXClient/Functions/GetNotificationsReport.swift
+
16
−
20
Options
@@ -2,35 +2,31 @@ 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
,
marshaledS
ervices
)
try
run
(
notificationCSV
,
s
ervices
)
}
}
extension
GetNotificationsReport
{
public
static
func
live
()
->
GetNotificationsReport
{
GetNotificationsReport
{
e2eId
,
notificationCSV
,
marshaledServices
in
var
error
:
NSError
?
let
result
=
BindingsGetNotificationsReport
(
e2eId
,
notificationCSV
,
marshaledServices
,
&
error
)
if
let
error
=
error
{
throw
error
}
guard
let
result
=
result
else
{
fatalError
(
"BindingsGetNotificationsReport returned nil without providing error"
)
}
return
try
NotificationReport
.
decode
(
result
)
public
static
let
live
=
GetNotificationsReport
{
notificationCSV
,
services
in
var
error
:
NSError
?
let
result
=
BindingsGetNotificationsReport
(
notificationCSV
,
try
services
.
encode
(),
&
error
)
if
let
error
=
error
{
throw
error
}
guard
let
result
=
result
else
{
fatalError
(
"BindingsGetNotificationsReport returned nil without providing error"
)
}
return
try
NotificationReport
.
decode
(
result
)
}
}
Loading