OSDN Git Service

staticプロパティをインスタンスプロパティに変更
[kcd/KCD.git] / KCD / RealPowerUpCommand.swift
1 //
2 //  RealPowerUpCommand.swift
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2017/01/09.
6 //  Copyright © 2017年 Hori,Masaki. All rights reserved.
7 //
8
9 import Cocoa
10
11 final class RealPowerUpCommand: JSONCommand {
12     
13     override func execute() {
14         
15         let store = ServerDataStore.oneTimeEditor()
16         store.sync {
17             
18             self.parameter["api_id_items"]
19                 .integerArray
20                 .compactMap(store.ship(by:))
21                 .forEach(store.delete)
22         }
23     }
24 }