Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | interface ProjectResponseInterface { |
2 | id: string, | ||||
3 | name: string | ||||
4 | } | ||||
5 | |||||
6 | export class Project { | ||||
7 | id: string; | ||||
8 | name: string; | ||||
9 | |||||
10 | constructor(projectResponse: ProjectResponseInterface){ | ||||
11 | this.id = projectResponse.id; | ||||
12 | this.name = projectResponse.name; | ||||
13 | } | ||||
14 | } |