OSDN Git Service

MappingConfigurationをジェネリクスにした
[kcd/KCD.git] / KCD / MasterFurnitureMapper.swift
index 2ec88c9..2df11c0 100644 (file)
@@ -9,8 +9,10 @@
 import Cocoa
 
 class MasterFurnitureMapper: JSONMapper {
+    typealias ObjectType = MasterFurniture
+
     let apiResponse: APIResponse
-    let configuration = MappingConfiguration(entityType: MasterFurniture.self,
+    let configuration = MappingConfiguration(entity: MasterFurniture.entity,
                                              dataKey: "api_data.api_mst_furniture",
                                              editorStore: ServerDataStore.oneTimeEditor(),
                                              ignoreKeys: ["api_season"])