OSDN Git Service

guard の書き方を統一した
[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 final class MasterFurnitureMapper: JSONMapper {
12     
13     typealias ObjectType = MasterFurniture
14
15     let apiResponse: APIResponse
16     let configuration = MappingConfiguration(entity: MasterFurniture.entity,
17                                              dataKeys: ["api_data", "api_mst_furniture"],
18                                              editorStore: ServerDataStore.oneTimeEditor(),
19                                              ignoreKeys: ["api_season"])
20     
21     required init(_ apiResponse: APIResponse) {
22         
23         self.apiResponse = apiResponse
24     }
25 }