OSDN Git Service

swiftlint 'line_length'の警告を修正
[kcd/KCD.git] / KCD / JSONCommand.swift
1 //
2 //  JSONCommand.swift
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2017/01/19.
6 //  Copyright © 2017年 Hori,Masaki. All rights reserved.
7 //
8
9 import Cocoa
10
11 class JSONCommand {
12     class func canExecuteAPI(_ api: String) -> Bool { return false }
13     
14     let apiResponse: APIResponse
15     
16     required init(apiResponse: APIResponse) {
17         self.apiResponse = apiResponse
18     }
19     
20     var api: String { return apiResponse.api }
21     var arguments: [String: String] { return apiResponse.parameter }
22     var json: [String: Any] { return apiResponse.json }
23     
24     var dataKey: String { return "api_data" }
25
26     func execute() throws {}
27 }