OSDN Git Service

staticプロパティをインスタンスプロパティに変更
[kcd/KCD.git] / KCD / MasterFurnitureMapper.swift
index 83190a1..e31fcb2 100644 (file)
@@ -8,14 +8,16 @@
 
 import Cocoa
 
-class MasterFurnitureMapper: JSONMapper {
+final class MasterFurnitureMapper: JSONMapper {
+    
     let apiResponse: APIResponse
-    let configuration = MappingConfiguration(entityName: "MasterFurniture",
-                                             dataKey: "api_data.api_mst_furniture",
+    let configuration = MappingConfiguration(entity: MasterFurniture.self,
+                                             dataKeys: ["api_data", "api_mst_furniture"],
                                              editorStore: ServerDataStore.oneTimeEditor(),
                                              ignoreKeys: ["api_season"])
     
     required init(_ apiResponse: APIResponse) {
+        
         self.apiResponse = apiResponse
     }
 }