1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | 'use strict';
|
13 |
|
14 | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
15 |
|
16 | var Immutable = require("immutable");
|
17 |
|
18 | var Record = Immutable.Record;
|
19 | var DraftEntityInstanceRecord = Record({
|
20 | type: 'TOKEN',
|
21 | mutability: 'IMMUTABLE',
|
22 | data: Object
|
23 | });
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | var DraftEntityInstance = function (_DraftEntityInstanceR) {
|
37 | _inheritsLoose(DraftEntityInstance, _DraftEntityInstanceR);
|
38 |
|
39 | function DraftEntityInstance() {
|
40 | return _DraftEntityInstanceR.apply(this, arguments) || this;
|
41 | }
|
42 |
|
43 | var _proto = DraftEntityInstance.prototype;
|
44 |
|
45 | _proto.getType = function getType() {
|
46 | return this.get('type');
|
47 | };
|
48 |
|
49 | _proto.getMutability = function getMutability() {
|
50 | return this.get('mutability');
|
51 | };
|
52 |
|
53 | _proto.getData = function getData() {
|
54 | return this.get('data');
|
55 | };
|
56 |
|
57 | return DraftEntityInstance;
|
58 | }(DraftEntityInstanceRecord);
|
59 |
|
60 | module.exports = DraftEntityInstance; |
\ | No newline at end of file |