OSDN Git Service

CoreDataのエンティティ名を文字列でアクセスしないようにした
[kcd/KCD.git] / KCD / MasterSTypeMapper.swift
index 96da10a..f75f8fb 100644 (file)
@@ -10,7 +10,7 @@ import Cocoa
 
 class MasterSTypeMapper: JSONMapper {
     let apiResponse: APIResponse
-    let configuration = MappingConfiguration(entityName: "MasterSType",
+    let configuration = MappingConfiguration(entity: .masterSType,
                                              dataKey: "api_data.api_mst_stype",
                                              editorStore: ServerDataStore.oneTimeEditor(),
                                              ignoreKeys: ["api_equip_type"])