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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Merge requests
!24
Update Bindings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Update Bindings
dev/update-bindings
into
development
Overview
0
Commits
9
Pipelines
0
Changes
2
Merged
Update Bindings
Dariusz Rybicki
requested to merge
dev/update-bindings
into
development
Aug 8, 2022
Overview
0
Commits
9
Pipelines
0
Changes
2
Update Bindings.xcframework
Release
https://git.xx.network/elixxir/client/-/pipelines/138343
Wrap
Group
and
GroupChat
interfaces with required models and callbacks
0
0
Merge request reports
Viewing commit
d98e0fa0
Prev
Next
Show latest version
2 files
+
64
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
d98e0fa0
Add GroupReport model
· d98e0fa0
Dariusz Rybicki
authored
Aug 8, 2022
Sources/ElixxirDAppsSDK/Models/GroupReport.swift
0 → 100644
+
33
−
0
View file @ d98e0fa0
Edit in single-file editor
Open in Web IDE
import
Foundation
public
struct
GroupReport
:
Equatable
{
public
init
(
id
:
Data
,
rounds
:
[
Int
],
status
:
Int
)
{
self
.
id
=
id
self
.
rounds
=
rounds
self
.
status
=
status
}
public
var
id
:
Data
public
var
rounds
:
[
Int
]
public
var
status
:
Int
}
extension
GroupReport
:
Codable
{
enum
CodingKeys
:
String
,
CodingKey
{
case
id
=
"Id"
case
rounds
=
"Rounds"
case
status
=
"Status"
}
public
static
func
decode
(
_
data
:
Data
)
throws
->
Self
{
try
JSONDecoder
()
.
decode
(
Self
.
self
,
from
:
data
)
}
public
func
encode
()
throws
->
Data
{
try
JSONEncoder
()
.
encode
(
self
)
}
}
Loading