Frontend/src/model/externalTrack.model.ts
2023-01-24 22:37:57 -05:00

41 lines
1.1 KiB
TypeScript

export default class ExternalTrack {
private readonly _trackId: string;
private readonly _name: string;
private readonly _albumName: string;
private readonly _authors: string[];
private readonly _thumbnailUrl: string;
private readonly _previewUrl: string;
public constructor(trackId: string, name: string, albumName: string, authors: string[], thumbnailUrl: string, previewUrl: string) {
this._trackId = trackId;
this._name = name;
this._albumName = albumName;
this._authors = authors;
this._thumbnailUrl = thumbnailUrl;
this._previewUrl = previewUrl;
}
public get trackId(): string {
return this._trackId;
}
public get name(): string {
return this._name;
}
public get albumName(): string {
return this._albumName;
}
public get authors(): string[] {
return this._authors;
}
public get thumbnailUrl(): string {
return this._thumbnailUrl;
}
public get previewUrl(): string {
return this._previewUrl;
}
}