OSDN Git Service

CoreDataのエンティティ名を文字列でアクセスしないようにした
[kcd/KCD.git] / KCD / MasterFurnitureMapper.swift
1 //
2 //  MasterFurnitureMapper.swift
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2017/02/23.
6 //  Copyright © 2017年 Hori,Masaki. All rights reserved.
7 //
8
9 import Cocoa
10
11 class MasterFurnitureMapper: JSONMapper {
12     let apiResponse: APIResponse
13     let configuration = MappingConfiguration(entity: .masterFurniture,
14                                              dataKey: "api_data.api_mst_furniture",
15                                              editorStore: ServerDataStore.oneTimeEditor(),
16                                              ignoreKeys: ["api_season"])
17     
18     required init(_ apiResponse: APIResponse) {
19         self.apiResponse = apiResponse
20     }
21 }