-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mehran Kamalifard
authored and
Mehran Kamalifard
committed
Aug 19, 2024
1 parent
08e64c4
commit fc26dfb
Showing
6 changed files
with
61 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// APIErrorResponse.swift | ||
// EasyCrypto | ||
// | ||
// Created by Mehran Kamalifard on 2024/08/19. | ||
// | ||
|
||
import Foundation | ||
|
||
struct APIErrorResponse: Decodable { | ||
|
||
let status: Status | ||
} | ||
|
||
struct Status: Decodable { | ||
|
||
let errorCode: Int | ||
let errorMessage: String | ||
|
||
private enum CodingKeys: String, CodingKey { | ||
case errorCode = "error_code" | ||
case errorMessage = "error_message" | ||
} | ||
} |
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