main code repository.
Revision | 7e51bff2a2e815cf397c230f8a18c57c4ecdbce5 (tree) |
---|---|
Time | 2017-02-22 23:07:59 |
Author | masakih <masakih@user...> |
Commiter | masakih |
MasterSTypeMapperを作成
@@ -131,6 +131,7 @@ | ||
131 | 131 | F47215AC1E1FA2460083D3BC /* HMTemporaryDataStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47215AB1E1FA2460083D3BC /* HMTemporaryDataStore.swift */; }; |
132 | 132 | F47215B01E1FEACC0083D3BC /* HMServerDataStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47215AF1E1FEACC0083D3BC /* HMServerDataStore.swift */; }; |
133 | 133 | F47C3E981E5DB29300D97449 /* JSONMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47C3E971E5DB29300D97449 /* JSONMapper.swift */; }; |
134 | + F47C3E9A1E5DC90000D97449 /* MasterSTypeMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47C3E991E5DC90000D97449 /* MasterSTypeMapper.swift */; }; | |
134 | 135 | F490977B1E19C3910085A45D /* HMSuppliesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F490977A1E19C3910085A45D /* HMSuppliesView.swift */; }; |
135 | 136 | F490977D1E19DF390085A45D /* HMSlotItemFrameView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F490977C1E19DF390085A45D /* HMSlotItemFrameView.swift */; }; |
136 | 137 | F490977F1E19ED400085A45D /* HMStrengthenListItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F490977E1E19ED400085A45D /* HMStrengthenListItemView.swift */; }; |
@@ -438,6 +439,7 @@ | ||
438 | 439 | F47215AB1E1FA2460083D3BC /* HMTemporaryDataStore.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMTemporaryDataStore.swift; sourceTree = "<group>"; }; |
439 | 440 | F47215AF1E1FEACC0083D3BC /* HMServerDataStore.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMServerDataStore.swift; sourceTree = "<group>"; }; |
440 | 441 | F47C3E971E5DB29300D97449 /* JSONMapper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSONMapper.swift; sourceTree = "<group>"; }; |
442 | + F47C3E991E5DC90000D97449 /* MasterSTypeMapper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MasterSTypeMapper.swift; sourceTree = "<group>"; }; | |
441 | 443 | F490977A1E19C3910085A45D /* HMSuppliesView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMSuppliesView.swift; sourceTree = "<group>"; }; |
442 | 444 | F490977C1E19DF390085A45D /* HMSlotItemFrameView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMSlotItemFrameView.swift; sourceTree = "<group>"; }; |
443 | 445 | F490977E1E19ED400085A45D /* HMStrengthenListItemView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMStrengthenListItemView.swift; sourceTree = "<group>"; }; |
@@ -1085,6 +1087,7 @@ | ||
1085 | 1087 | F4B15CBC1E21BA870078CFFC /* CommandRegister.swift */, |
1086 | 1088 | F4A0D71A1E30D77B00224DCE /* HMJSONCommand.swift */, |
1087 | 1089 | F47C3E971E5DB29300D97449 /* JSONMapper.swift */, |
1090 | + F47C3E991E5DC90000D97449 /* MasterSTypeMapper.swift */, | |
1088 | 1091 | F4A0D7161E2FB7E000224DCE /* HMCompositCommand.swift */, |
1089 | 1092 | F44BC6D01E224299004644E3 /* HMPortCommand.swift */, |
1090 | 1093 | F44BC6CA1E223208004644E3 /* HMIgnoreCommand.swift */, |
@@ -1475,6 +1478,7 @@ | ||
1475 | 1478 | F4AA594A1E1E4863001667AF /* HMMapWindowController.swift in Sources */, |
1476 | 1479 | F4FC3E961E46AC3000E41228 /* HMTSVSupport.swift in Sources */, |
1477 | 1480 | F42A8FDA1E3DF2230099DC1D /* HMKCShipObject.swift in Sources */, |
1481 | + F47C3E9A1E5DC90000D97449 /* MasterSTypeMapper.swift in Sources */, | |
1478 | 1482 | F4E5FF101E17A83D0026868C /* HMScreenshotListWindowController.swift in Sources */, |
1479 | 1483 | F44BC7031E252C4F004644E3 /* HMUpdateSlotItemCommand.swift in Sources */, |
1480 | 1484 | F44BC73F1E2B1AD4004644E3 /* HMDummyShipCommand.swift in Sources */, |
@@ -17,6 +17,7 @@ class HMMasterSTypeCommand: HMJSONCommand { | ||
17 | 17 | } |
18 | 18 | |
19 | 19 | override func execute() { |
20 | - commitJSON(toEntityNamed: "MasterSType") | |
20 | +// commitJSON(toEntityNamed: "MasterSType") | |
21 | + MasterSTypeMapper().commit(json) | |
21 | 22 | } |
22 | 23 | } |
@@ -0,0 +1,17 @@ | ||
1 | +// | |
2 | +// MasterSTypeMapper.swift | |
3 | +// KCD | |
4 | +// | |
5 | +// Created by Hori,Masaki on 2017/02/22. | |
6 | +// Copyright © 2017年 Hori,Masaki. All rights reserved. | |
7 | +// | |
8 | + | |
9 | +import Cocoa | |
10 | + | |
11 | +class MasterSTypeMapper: JSONMapper { | |
12 | + let configuration: MappingConfiguration = { | |
13 | + return MappingConfiguration(entityName: "MasterSType", | |
14 | + dataKey: "api_data.api_mst_stype", | |
15 | + editorStore: HMServerDataStore.oneTimeEditor()) | |
16 | + }() | |
17 | +} |