OSDN Git Service

ad3a66bee2c684e569cc36b2573f0a38a5a05ead
[kcd/KCD.git] / KCD / MasterMissionMapper.swift
1 //
2 //  MasterMissionMapper.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 MasterMissionMapper: JSONMapper {
12     
13     let apiResponse: APIResponse
14     let configuration = MappingConfiguration(entity: MasterMission.entity,
15                                              dataKeys: ["api_data", "api_mst_mission"],
16                                              editorStore: ServerDataStore.oneTimeEditor(),
17                                              ignoreKeys: ["api_deck_num", "api_disp_no"])
18     
19     required init(_ apiResponse: APIResponse) {
20         
21         self.apiResponse = apiResponse
22     }
23 }