Skip to content

Commit

Permalink
result: Conform to ResponseEncodable
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Castelli committed Feb 24, 2020
1 parent 597bc7e commit 086a650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file not shown.
3 changes: 2 additions & 1 deletion Sources/OneSignal/OneSignalResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import Vapor

public enum OneSignalError: Swift.Error {
case `internal`
Expand All @@ -15,7 +16,7 @@ public enum OneSignalError: Swift.Error {
case requestError(value: String)
}

public enum OneSignalResult {
public enum OneSignalResult: ResponseCodable {
case success
case error(error: OneSignalError)
case networkError(error: Error)
Expand Down

0 comments on commit 086a650

Please sign in to comment.