OSDN Git Service

MappingConfigurationをジェネリクスにした
[kcd/KCD.git] / KCD / MasterSTypeMapper.swift
1 //
2 //  MasterSTypeMapper.swift
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2017/02/22.
6 //  Copyright © 2017年 Hori,Masaki. All rights reserved.
7 //
8
9 import Cocoa
10
11 class MasterSTypeMapper: JSONMapper {
12     typealias ObjectType = MasterSType
13
14     let apiResponse: APIResponse
15     let configuration = MappingConfiguration(entity: MasterSType.entity,
16                                              dataKey: "api_data.api_mst_stype",
17                                              editorStore: ServerDataStore.oneTimeEditor(),
18                                              ignoreKeys: ["api_equip_type"])
19     
20     required init(_ apiResponse: APIResponse) {
21         self.apiResponse = apiResponse
22     }
23 }