Files
yellowjacket/frontend/wailsjs/go/models.ts
T
yonlu 481beca00a frontend changes
-smaller thumbnails
-GPU acceleration
-lazy loading/ rendering only visible elements
-cover grid shows album tracks on click
2026-02-16 22:42:13 -05:00

97 lines
2.5 KiB
TypeScript
Executable File

export namespace library {
export class Album {
ID: number;
Name: string;
ArtistName: string;
CoverArtPath: string;
CoverArtThumbnailPath: string;
Year: number;
static createFrom(source: any = {}) {
return new Album(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.ID = source["ID"];
this.Name = source["Name"];
this.ArtistName = source["ArtistName"];
this.CoverArtPath = source["CoverArtPath"];
this.CoverArtThumbnailPath = source["CoverArtThumbnailPath"];
this.Year = source["Year"];
}
}
export class Track {
TrackName: string;
ArtistName: string;
TrackLength: string;
FilePath: string;
TrackNumber: number;
DiscNumber: number;
static createFrom(source: any = {}) {
return new Track(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.TrackName = source["TrackName"];
this.ArtistName = source["ArtistName"];
this.TrackLength = source["TrackLength"];
this.FilePath = source["FilePath"];
this.TrackNumber = source["TrackNumber"];
this.DiscNumber = source["DiscNumber"];
}
}
}
export namespace playlist {
export class Summary {
ID: number;
Name: string;
static createFrom(source: any = {}) {
return new Summary(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.ID = source["ID"];
this.Name = source["Name"];
}
}
export class Track {
ID: number;
Position: number;
FilePath: string;
Title: string;
Artist: string;
Album: string;
CoverArtPath: string;
CoverArtThumbnailPath: string;
Duration: string;
static createFrom(source: any = {}) {
return new Track(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.ID = source["ID"];
this.Position = source["Position"];
this.FilePath = source["FilePath"];
this.Title = source["Title"];
this.Artist = source["Artist"];
this.Album = source["Album"];
this.CoverArtPath = source["CoverArtPath"];
this.CoverArtThumbnailPath = source["CoverArtThumbnailPath"];
this.Duration = source["Duration"];
}
}
}