Skip to content
Snippets Groups Projects
Commit 8a1d2d97 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Remove unneeded codable methods

parent a5f32364
No related branches found
No related tags found
2 merge requests!13Update Bindings,!8Clean up latest merge
......@@ -22,18 +22,4 @@ extension MessageSendReport: Codable {
case messageId = "MessageID"
case timestamp = "Timestamp"
}
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
messageId = try container.decodeIfPresent(Data.self, forKey: .messageId)
timestamp = try container.decodeIfPresent(Int.self, forKey: .timestamp)
roundList = try container.decodeIfPresent([Int].self, forKey: .roundList)
}
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(messageId, forKey: .messageId)
try container.encode(timestamp, forKey: .timestamp)
try container.encode(roundList, forKey: .roundList)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment