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
5a1392bd
Commit
5a1392bd
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Update NewUdManagerFromBackup
parent
827d8471
No related branches found
No related tags found
2 merge requests
!102
Release 1.0.0
,
!34
Update Bindings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/XXClient/Functors/NewUdManagerFromBackup.swift
+9
-9
9 additions, 9 deletions
Sources/XXClient/Functors/NewUdManagerFromBackup.swift
with
9 additions
and
9 deletions
Sources/XXClient/Functors/NewUdManagerFromBackup.swift
+
9
−
9
View file @
5a1392bd
...
@@ -2,10 +2,9 @@ import Bindings
...
@@ -2,10 +2,9 @@ import Bindings
import
XCTestDynamicOverlay
import
XCTestDynamicOverlay
public
struct
NewUdManagerFromBackup
{
public
struct
NewUdManagerFromBackup
{
public
struct
Params
{
public
struct
Params
:
Equatable
{
public
init
(
public
init
(
e2eId
:
Int
,
e2eId
:
Int
,
follower
:
UdNetworkStatus
,
username
:
Fact
,
username
:
Fact
,
email
:
Fact
?,
email
:
Fact
?,
phone
:
Fact
?,
phone
:
Fact
?,
...
@@ -14,7 +13,6 @@ public struct NewUdManagerFromBackup {
...
@@ -14,7 +13,6 @@ public struct NewUdManagerFromBackup {
address
:
String
address
:
String
)
{
)
{
self
.
e2eId
=
e2eId
self
.
e2eId
=
e2eId
self
.
follower
=
follower
self
.
username
=
username
self
.
username
=
username
self
.
email
=
email
self
.
email
=
email
self
.
phone
=
phone
self
.
phone
=
phone
...
@@ -24,7 +22,6 @@ public struct NewUdManagerFromBackup {
...
@@ -24,7 +22,6 @@ public struct NewUdManagerFromBackup {
}
}
public
var
e2eId
:
Int
public
var
e2eId
:
Int
public
var
follower
:
UdNetworkStatus
public
var
username
:
Fact
public
var
username
:
Fact
public
var
email
:
Fact
?
public
var
email
:
Fact
?
public
var
phone
:
Fact
?
public
var
phone
:
Fact
?
...
@@ -33,19 +30,22 @@ public struct NewUdManagerFromBackup {
...
@@ -33,19 +30,22 @@ public struct NewUdManagerFromBackup {
public
var
address
:
String
public
var
address
:
String
}
}
public
var
run
:
(
Params
)
throws
->
UserDiscovery
public
var
run
:
(
Params
,
UdNetworkStatus
)
throws
->
UserDiscovery
public
func
callAsFunction
(
_
params
:
Params
)
throws
->
UserDiscovery
{
public
func
callAsFunction
(
try
run
(
params
)
params
:
Params
,
follower
:
UdNetworkStatus
)
throws
->
UserDiscovery
{
try
run
(
params
,
follower
)
}
}
}
}
extension
NewUdManagerFromBackup
{
extension
NewUdManagerFromBackup
{
public
static
let
live
=
NewUdManagerFromBackup
{
params
in
public
static
let
live
=
NewUdManagerFromBackup
{
params
,
follower
in
var
error
:
NSError
?
var
error
:
NSError
?
let
bindingsUD
=
BindingsNewUdManagerFromBackup
(
let
bindingsUD
=
BindingsNewUdManagerFromBackup
(
params
.
e2eId
,
params
.
e2eId
,
params
.
follower
.
makeBindingsUdNetworkStatus
(),
follower
.
makeBindingsUdNetworkStatus
(),
try
params
.
username
.
encode
(),
try
params
.
username
.
encode
(),
try
params
.
email
?
.
encode
(),
try
params
.
email
?
.
encode
(),
try
params
.
phone
?
.
encode
(),
try
params
.
phone
?
.
encode
(),
...
...
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