| 26 | } |
| 27 | |
| 28 | @Type() |
| 29 | class Message |
| 30 | { |
| 31 | @Property(() => String, { serializer: new MessageBodySerializer() }) public body?: string; |
| 32 | @Property(() => String, { alias: 'label'}) public title?: string; |
| 33 | @Property(() => User) public user?: User; |
| 34 | @Property(() => Array, [() => Group]) public groups?: Group[]; |
| 35 | } |
| 36 | |
| 37 | @Type() |
| 38 | class Group |