2016-10-02 21:41:05 +08:00
|
|
|
import DataModelMap from './DataModel/Map'
|
|
|
|
import DataModelMapper from './DataModel/Mapper'
|
|
|
|
import DataModelTopic from './DataModel/Topic'
|
|
|
|
|
2016-09-22 17:05:28 +08:00
|
|
|
const Active = {
|
|
|
|
Map: null,
|
2016-10-02 21:41:05 +08:00
|
|
|
Mapper: null,
|
2016-09-22 17:05:28 +08:00
|
|
|
Topic: null,
|
2016-10-02 21:41:05 +08:00
|
|
|
init: function(serverData) {
|
|
|
|
if (serverData.Map) Active.Map = new DataModelMap(severData.ActiveMap)
|
|
|
|
if (serverData.Mapper) Active.Mapper = new DataModelMapper(serverData.ActiveMapper)
|
|
|
|
if (serverData.Topic) Active.Topic = new DataModelTopic(serverData.ActiveTopic)
|
|
|
|
}
|
|
|
|
}
|
2016-09-22 17:05:28 +08:00
|
|
|
|
|
|
|
export default Active
|