OSDN Git Service

Doutaku を 1.0 にアップデート
[kcd/KCD.git] / KCD / MasterSTypeMapper.swift
index 96da10a..d41a268 100644 (file)
@@ -8,14 +8,16 @@
 
 import Cocoa
 
-class MasterSTypeMapper: JSONMapper {
+final class MasterSTypeMapper: JSONMapper {
+    
     let apiResponse: APIResponse
-    let configuration = MappingConfiguration(entityName: "MasterSType",
-                                             dataKey: "api_data.api_mst_stype",
+    let configuration = MappingConfiguration(entity: MasterSType.self,
+                                             dataKeys: ["api_data", "api_mst_stype"],
                                              editorStore: ServerDataStore.oneTimeEditor(),
                                              ignoreKeys: ["api_equip_type"])
     
     required init(_ apiResponse: APIResponse) {
+        
         self.apiResponse = apiResponse
     }
 }