OSDN Git Service

d5035348d2458cd9033404636abdfc0f06fc3a0c
[kcd/KCD.git] / KCD / MasterMapAreaMapper.swift
1 //
2 //  MasterMapAreaMapper.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 final class MasterMapAreaMapper: JSONMapper {
12     
13     typealias ObjectType = MasterMapArea
14     
15     let apiResponse: APIResponse
16     let configuration = MappingConfiguration(entity: MasterMapArea.entity,
17                                              dataKeys: ["api_data", "api_mst_maparea"],
18                                              editorStore: ServerDataStore.oneTimeEditor())
19     
20     required init(_ apiResponse: APIResponse) {
21         
22         self.apiResponse = apiResponse
23     }
24 }