mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-23 00:00:02 +01:00

The context broker is connected via the custom adapter and serializer. At the moment only the entity IDs are shown but the property table is empty. Mirage is disabled.
12 lines
320 B
JavaScript
12 lines
320 B
JavaScript
import Ember from 'ember';
|
|
import DS from 'ember-data';
|
|
|
|
export default DS.Transform.extend({
|
|
deserialize: function(value) {
|
|
return Ember.create({ name: value[0], value: value[1], type: value[2]});
|
|
},
|
|
|
|
serialize: function(value) {
|
|
return [value.get('name'), value.get('value'), value.get('type')];
|
|
}
|
|
});
|