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
!3
Bindings models wrapper
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bindings models wrapper
feature/bindings-models-wrapper
into
main
Overview
0
Commits
11
Pipelines
0
Changes
2
Merged
Dariusz Rybicki
requested to merge
feature/bindings-models-wrapper
into
main
2 years ago
Overview
0
Commits
11
Pipelines
0
Changes
2
Expand
Add
Identity
model.
Add
MessageSendReport
model.
Add
Fact
model.
Add
Message
model.
Add
RestlikeMessage
model.
Add tests for models decoding and encoding (use example JSONs from Bindings as expected JSON schemas).
Edited
2 years ago
by
Dariusz Rybicki
0
0
Merge request reports
Viewing commit
58bbf5f7
Prev
Next
Show latest version
2 files
+
77
−
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)
58bbf5f7
Add RestlikeMessage codable model
· 58bbf5f7
Dariusz Rybicki
authored
2 years ago
Sources/ElixxirDAppsSDK/RestlikeMessage.swift
0 → 100644
+
37
−
0
Options
import
Foundation
public
struct
RestlikeMessage
:
Equatable
{
public
init
(
version
:
Int
,
headers
:
Data
,
content
:
Data
,
method
:
Int
,
uri
:
String
,
error
:
String
)
{
self
.
version
=
version
self
.
headers
=
headers
self
.
content
=
content
self
.
method
=
method
self
.
uri
=
uri
self
.
error
=
error
}
public
var
version
:
Int
public
var
headers
:
Data
public
var
content
:
Data
public
var
method
:
Int
public
var
uri
:
String
public
var
error
:
String
}
extension
RestlikeMessage
:
Codable
{
enum
CodingKeys
:
String
,
CodingKey
{
case
version
=
"Version"
case
headers
=
"Headers"
case
content
=
"Content"
case
method
=
"Method"
case
uri
=
"URI"
case
error
=
"Error"
}
}
Loading