Skip to content

Commit

Permalink
Merge pull request #717 from Infomaniak/remove-cancel-resource
Browse files Browse the repository at this point in the history
fix: Remove cancelResource for SendResponse
  • Loading branch information
Ambrdctr committed Apr 27, 2023
2 parents 8a547ce + 8e84d81 commit 3de8089
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions MailCore/Models/CancelableResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,10 @@ public protocol CancelableResponse {
var resource: String { get }
}

public struct SendResponse: Decodable, CancelableResponse {
public let cancelResource: String
public struct SendResponse: Decodable {
public let scheduledDate: Date

public var resource: String {
return cancelResource
}

enum CodingKeys: String, CodingKey {
case cancelResource
case scheduledDate = "etop"
}
}
Expand Down

0 comments on commit 3de8089

Please sign in to comment.