-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from MoveUpwards/feature/swift-result-type
Feature/swift result type
- Loading branch information
Showing
10 changed files
with
148 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// GormssonEmpty.swift | ||
// Gormsson | ||
// | ||
// Created by Loïc GRIFFIE on 27/05/2019. | ||
// Copyright © 2019 Loïc GRIFFIE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Nevanlinna | ||
|
||
/// A type representing an empty response | ||
public struct GormssonEmpty: DataInitializable, DataConvertible { | ||
/// Initialize an empty object | ||
public init() { } | ||
|
||
/// Initialize the object from octets' array. | ||
public init?(with octets: [UInt8]) { } | ||
|
||
/// Return Data of the object. | ||
public func toData() -> Data { | ||
return Data() | ||
} | ||
} |
Oops, something went wrong.