2 // MapInfoCommand.swift
5 // Created by Hori,Masaki on 2017/01/14.
6 // Copyright © 2017年 Hori,Masaki. All rights reserved.
11 final class MapInfoCommand: JSONCommand {
13 override class func canExecuteAPI(_ api: API) -> Bool {
15 return api.endpoint == .mapInfo
18 override func execute() {
20 let store = ServerDataStore.oneTimeEditor()
23 store.airBases().forEach(store.delete)
27 AirBaseMapper(apiResponse).commit()