Added manager classes for song metadata

This commit is contained in:
kdeng00
2019-09-01 15:10:46 -04:00
parent d16b8dc3c9
commit f75ebe14a7
26 changed files with 127 additions and 36 deletions
+28 -10
View File
@@ -20,6 +20,16 @@ namespace Model
std::string songPath;
std::vector<unsigned char> data;
int coverArtId;
int artistId;
int albumId;
int genreId;
int yearId;
};
struct Artist
{
int id;
std::string artist;
};
struct Album
@@ -30,6 +40,19 @@ namespace Model
std::vector<Song> songs;
};
struct Genre
{
int id;
std::string category;
};
struct Year
{
int id;
int year;
};
struct Cover
{
int id;
@@ -39,16 +62,6 @@ namespace Model
std::vector<unsigned char> data;
};
struct LoginRes
{
int UserId;
char Username[1024];
char Token[1024];
char TokenType[1024];
char Message[1024];
int Expiration;
};
struct loginResult
{
int user_id;
@@ -76,6 +89,11 @@ namespace Model
std::string password;
std::string database;
};
struct BinaryPath
{
std::string path;
};
}
#endif