parent
10455f8715
commit
eaada945fb
@ -0,0 +1,39 @@ |
||||
// |
||||
// FailedAPICall.swift |
||||
// LeStorage |
||||
// |
||||
// Created by Laurent Morvillier on 31/05/2024. |
||||
// |
||||
|
||||
import Foundation |
||||
|
||||
class FailedAPICall: ModelObject, Storable { |
||||
|
||||
static func resourceName() -> String { return "failed_api_calls" } |
||||
static func tokenExemptedMethods() -> [HTTPMethod] { return HTTPMethod.allCases } |
||||
|
||||
var id: String = Store.randomId() |
||||
|
||||
/// The creation date of the call |
||||
var date: Date = Date() |
||||
|
||||
/// The id of the API call |
||||
var callId: String |
||||
|
||||
/// The type of the call |
||||
var type: String |
||||
|
||||
/// The JSON representation of the API call |
||||
var apiCall: String |
||||
|
||||
/// The server error |
||||
var error: String |
||||
|
||||
init(callId: String, type: String, apiCall: String, error: String) { |
||||
self.callId = callId |
||||
self.type = type |
||||
self.apiCall = apiCall |
||||
self.error = error |
||||
} |
||||
|
||||
} |
||||
Loading…
Reference in new issue