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
6c9b2866
Commit
6c9b2866
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Use Contact model in CMixConnect
parent
8b2e35cb
No related branches found
No related tags found
2 merge requests
!102
Release 1.0.0
,
!42
Update Bindings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/XXClient/CMix/Functors/CMixConnect.swift
+6
-6
6 additions, 6 deletions
Sources/XXClient/CMix/Functors/CMixConnect.swift
with
6 additions
and
6 deletions
Sources/XXClient/CMix/Functors/CMixConnect.swift
+
6
−
6
View file @
6c9b2866
...
...
@@ -2,31 +2,31 @@ import Bindings
import
XCTestDynamicOverlay
public
struct
CMixConnect
{
public
var
run
:
(
Bool
,
Int
,
Data
,
Data
)
throws
->
Connection
public
var
run
:
(
Bool
,
Int
,
Contact
,
Data
)
throws
->
Connection
public
func
callAsFunction
(
withAuthentication
:
Bool
,
e2eId
:
Int
,
recipientContact
:
Data
,
recipient
:
Contact
,
e2eParamsJSON
:
Data
=
GetE2EParams
.
liveDefault
()
)
throws
->
Connection
{
try
run
(
withAuthentication
,
e2eId
,
recipient
Contact
,
e2eParamsJSON
)
try
run
(
withAuthentication
,
e2eId
,
recipient
,
e2eParamsJSON
)
}
}
extension
CMixConnect
{
public
static
func
live
(
_
bindingsCMix
:
BindingsCmix
)
->
CMixConnect
{
CMixConnect
{
withAuthentication
,
e2eId
,
recipient
Contact
,
e2eParamsJSON
in
CMixConnect
{
withAuthentication
,
e2eId
,
recipient
,
e2eParamsJSON
in
if
withAuthentication
{
return
.
live
(
try
bindingsCMix
.
connect
(
withAuthentication
:
e2eId
,
recipientContact
:
recipient
Contact
,
recipientContact
:
recipient
.
data
,
e2eParamsJSON
:
e2eParamsJSON
))
}
else
{
return
.
live
(
try
bindingsCMix
.
connect
(
e2eId
,
recipientContact
:
recipient
Contact
,
recipientContact
:
recipient
.
data
,
e2eParamsJSON
:
e2eParamsJSON
))
}
...
...
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