Add constructors and accessors to models

This commit is contained in:
2020-03-26 02:43:51 +01:00
parent 869166f818
commit c0c6fb8b06
4 changed files with 41 additions and 5 deletions

View File

@ -1,4 +1,10 @@
export class Language {
constructor(id: number, name: string) {
this.id = id;
this.name = name;
}
id: number;
name: string;
}