mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-02 00:01:41 +02:00
Add constructors and accessors to models
This commit is contained in:
@ -1,4 +1,16 @@
|
||||
export class Genre {
|
||||
|
||||
constructor(id: number, name: string) {
|
||||
this.id = id;
|
||||
this._name = name;
|
||||
}
|
||||
|
||||
|
||||
public get name() : string {
|
||||
return this._name;
|
||||
}
|
||||
|
||||
|
||||
id: number;
|
||||
name: string;
|
||||
_name: string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user