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
!142
Fix GetNotificationsReport
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix GetNotificationsReport
fix/get-notifications-report
into
development
Overview
0
Commits
4
Pipelines
0
Changes
2
Merged
Dariusz Rybicki
requested to merge
fix/get-notifications-report
into
development
2 years ago
Overview
0
Commits
4
Pipelines
0
Changes
2
Expand
XXClient
Add
NotificationReport
array coding helpers.
Fix GetNotificationsReport` so it returns array.
XXMessengerClient
Update
MessengerGetNotificationReport
.
Rename
MessengerGetNotificationReport
to
MessengerGetNotificationReports
.
0
0
Merge request reports
Viewing commit
450ca488
Prev
Next
Show latest version
2 files
+
49
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
450ca488
Add NotificationReport array coding helpers
· 450ca488
Dariusz Rybicki
authored
2 years ago
Sources/XXClient/Models/NotificationReport.swift
+
10
−
0
Options
@@ -45,3 +45,13 @@ extension NotificationReport: Codable {
try
JSONEncoder
()
.
encode
(
self
)
}
}
extension
Array
where
Element
==
NotificationReport
{
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