OSDN Git Service

staticプロパティをインスタンスプロパティに変更
[kcd/KCD.git] / KCD / MasterSlotItemMapper.swift
index c12ca0e..43f2d5b 100644 (file)
@@ -8,13 +8,16 @@
 
 import Cocoa
 
-class MasterSlotItemMapper: JSONMapper {
+final class MasterSlotItemMapper: JSONMapper {
+    
     let apiResponse: APIResponse
-    let configuration = MappingConfiguration(entityType: KCMasterSlotItemObject.self,
-                                             dataKey: "api_data.api_mst_slotitem",
-                                             editorStore: ServerDataStore.oneTimeEditor())
+    let configuration = MappingConfiguration(entity: MasterSlotItem.self,
+                                             dataKeys: ["api_data", "api_mst_slotitem"],
+                                             editorStore: ServerDataStore.oneTimeEditor(),
+                                             ignoreKeys: ["api_version", "api_usebull"])
     
     required init(_ apiResponse: APIResponse) {
+        
         self.apiResponse = apiResponse
     }
 }