OSDN Git Service

Doutaku を 1.0 にアップデート
[kcd/KCD.git] / KCD / MasterMapInfoMapper.swift
index 01c13ff..0bd41f6 100644 (file)
@@ -8,13 +8,15 @@
 
 import Cocoa
 
-class MasterMapInfoMapper: JSONMapper {
+final class MasterMapInfoMapper: JSONMapper {
+        
     let apiResponse: APIResponse
-    let configuration = MappingConfiguration(entityType: KCMasterMapInfo.self,
-                                             dataKey: "api_data.api_mst_mapinfo",
+    let configuration = MappingConfiguration(entityMasterMapInfo.self,
+                                             dataKeys: ["api_data", "api_mst_mapinfo"],
                                              editorStore: ServerDataStore.oneTimeEditor())
     
     required init(_ apiResponse: APIResponse) {
+        
         self.apiResponse = apiResponse
     }
 }