|
|
|
|
@ -21,8 +21,8 @@ class ApiCall<T: Storable>: ModelObject, Storable, SomeCall { |
|
|
|
|
|
|
|
|
|
var id: String = Store.randomId() |
|
|
|
|
|
|
|
|
|
/// The http URL of the call |
|
|
|
|
// var url: String |
|
|
|
|
/// Creation date of the call |
|
|
|
|
var creationDate: Date = Date() |
|
|
|
|
|
|
|
|
|
/// The HTTP method of the call: post... |
|
|
|
|
var method: HTTPMethod |
|
|
|
|
@ -40,7 +40,6 @@ class ApiCall<T: Storable>: ModelObject, Storable, SomeCall { |
|
|
|
|
var lastAttemptDate: Date = Date() |
|
|
|
|
|
|
|
|
|
init(method: HTTPMethod, dataId: String, body: String) { |
|
|
|
|
// self.url = url |
|
|
|
|
self.method = method |
|
|
|
|
self.dataId = dataId |
|
|
|
|
self.body = body |
|
|
|
|
|