You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
946 B

import {Album} from "./Album";
export class Artist {
private _id: number
private _name: string;
private _image: string;
private _bio: string;
private _listAlbum: Album[];
constructor(id: number, name: string, image: string,bio: string) {
this._id = id;
this._name = name;
this._image = image;
this._bio = bio;
}
get id(): number{
return this._id;
}
get name(): string {
return this._name;
}
set name(value: string) {
this._name = value;
}
get image(): string {
return this._image;
}
set image(value: string) {
this._image = value;
}
get bio(): string {
return this._bio;
}
set bio(value: string) {
this._bio = value;
}
get listAlbum(): Album[] {
return this._listAlbum;
}
set listAlbum(value: Album[]) {
this._listAlbum = value;
}
}