OSDN Git Service

staticプロパティをインスタンスプロパティに変更
[kcd/KCD.git] / KCD / MasterMapAreaMapper.swift
index 995e809..ddf9beb 100644 (file)
@@ -8,13 +8,15 @@
 
 import Cocoa
 
-class MasterMapAreaMapper: JSONMapper {
+final class MasterMapAreaMapper: JSONMapper {
+        
     let apiResponse: APIResponse
-    let configuration = MappingConfiguration(entityType: KCMasterMapArea.self,
-                                             dataKey: "api_data.api_mst_maparea",
+    let configuration = MappingConfiguration(entityMasterMapArea.self,
+                                             dataKeys: ["api_data", "api_mst_maparea"],
                                              editorStore: ServerDataStore.oneTimeEditor())
     
     required init(_ apiResponse: APIResponse) {
+        
         self.apiResponse = apiResponse
     }
 }