X-Git-Url: http://git.osdn.net/view?p=kcd%2FKCD.git;a=blobdiff_plain;f=KCD%2FMasterSTypeMapper.swift;h=d41a268d7ec19f99095f83e3a6782f4a8362f79c;hp=96da10a0a474cbeae769f911ad58469786657919;hb=e341ef2774c1d7a27d9eb60edab905f1adc510a3;hpb=8e61870c45a553754bb51d847ffef31012284c1e diff --git a/KCD/MasterSTypeMapper.swift b/KCD/MasterSTypeMapper.swift index 96da10a0..d41a268d 100644 --- a/KCD/MasterSTypeMapper.swift +++ b/KCD/MasterSTypeMapper.swift @@ -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 } }