mirror of
https://github.com/tappollo/WWDC.git
synced 2026-01-12 22:45:32 +08:00
22 lines
443 B
Swift
22 lines
443 B
Swift
//
|
|
// SessionAssetsAdapter.swift
|
|
// WWDC
|
|
//
|
|
// Created by Guilherme Rambo on 08/02/17.
|
|
// Copyright © 2017 Guilherme Rambo. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftyJSON
|
|
|
|
final class SessionAssetsJSONAdapter: Adapter {
|
|
|
|
typealias InputType = JSON
|
|
typealias OutputType = [SessionAsset]
|
|
|
|
func adapt(_ input: JSON) -> Result<[SessionAsset], AdapterError> {
|
|
return .error(.invalidData)
|
|
}
|
|
|
|
}
|