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
8a1d2d97
Commit
8a1d2d97
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Remove unneeded codable methods
parent
a5f32364
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!13
Update Bindings
,
!8
Clean up latest merge
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/ElixxirDAppsSDK/MessageSendReport.swift
+0
-14
0 additions, 14 deletions
Sources/ElixxirDAppsSDK/MessageSendReport.swift
with
0 additions
and
14 deletions
Sources/ElixxirDAppsSDK/MessageSendReport.swift
+
0
−
14
View file @
8a1d2d97
...
...
@@ -22,18 +22,4 @@ extension MessageSendReport: Codable {
case
messageId
=
"MessageID"
case
timestamp
=
"Timestamp"
}
public
init
(
from
decoder
:
Decoder
)
throws
{
let
container
=
try
decoder
.
container
(
keyedBy
:
CodingKeys
.
self
)
messageId
=
try
container
.
decodeIfPresent
(
Data
.
self
,
forKey
:
.
messageId
)
timestamp
=
try
container
.
decodeIfPresent
(
Int
.
self
,
forKey
:
.
timestamp
)
roundList
=
try
container
.
decodeIfPresent
([
Int
]
.
self
,
forKey
:
.
roundList
)
}
public
func
encode
(
to
encoder
:
Encoder
)
throws
{
var
container
=
encoder
.
container
(
keyedBy
:
CodingKeys
.
self
)
try
container
.
encode
(
messageId
,
forKey
:
.
messageId
)
try
container
.
encode
(
timestamp
,
forKey
:
.
timestamp
)
try
container
.
encode
(
roundList
,
forKey
:
.
roundList
)
}
}
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