-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return GorushResponse instead of HTTPResponse
- Loading branch information
Showing
2 changed files
with
28 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// GorushNotification.swift | ||
// Gorush | ||
// | ||
// Created by Simon Kempendorf on 15.01.19. | ||
// | ||
|
||
import Foundation | ||
import Vapor | ||
|
||
public struct GorushResponse: Content { | ||
public let counts: Int | ||
public let success: String | ||
public let logs: [Log] | ||
|
||
public struct Log: Content { | ||
public let type: String | ||
public let platform: String | ||
public let token: String | ||
public let message: String | ||
public let error: String | ||
} | ||
} |