OSDN Git Service

Squashed commit of the following: Swiftに変換した
[kcd/KCD.git] / KCD / MasterMissionMapper.swift
diff --git a/KCD/MasterMissionMapper.swift b/KCD/MasterMissionMapper.swift
new file mode 100644 (file)
index 0000000..2e6311d
--- /dev/null
@@ -0,0 +1,20 @@
+//
+//  MasterMissionMapper.swift
+//  KCD
+//
+//  Created by Hori,Masaki on 2017/02/23.
+//  Copyright © 2017年 Hori,Masaki. All rights reserved.
+//
+
+import Cocoa
+
+class MasterMissionMapper: JSONMapper {
+    let apiResponse: APIResponse
+    let configuration = MappingConfiguration(entityName: "MasterMission",
+                                             dataKey: "api_data.api_mst_mission",
+                                             editorStore: ServerDataStore.oneTimeEditor())
+    
+    required init(_ apiResponse: APIResponse) {
+        self.apiResponse = apiResponse
+    }
+}