OSDN Git Service

CoreDataのエンティティ名を文字列でアクセスしないようにした
[kcd/KCD.git] / KCD / SlotItemMapper.swift
index 99dc4d3..0cd3796 100644 (file)
@@ -30,7 +30,7 @@ class SlotItemMapper: JSONMapper {
     
     required init(_ apiResponse: APIResponse) {
         self.apiResponse = apiResponse
-        self.configuration = MappingConfiguration(entityName: "SlotItem",
+        self.configuration = MappingConfiguration(entity: .slotItem,
                                                   dataKey: dataKey(apiResponse),
                                                   editorStore: ServerDataStore.oneTimeEditor())
     }