Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#ifndef GENRE_DTO_H
|
||||
#define GENRE_DTO_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
class GenreDTO {
|
||||
private:
|
||||
QString genreName_; // Genre name
|
||||
qint32 genreId_; // Unique ID for the genre
|
||||
|
||||
public:
|
||||
// Constructors
|
||||
explicit GenreDTO() = default;
|
||||
explicit GenreDTO(const QString &genreName, qint32 genreId)
|
||||
: genreId_(genreId), genreName_(genreName) {}
|
||||
|
||||
// Setters (inline methods)
|
||||
inline void setGenreId(qint32 genreId) { genreId_ = genreId; }
|
||||
inline void setGenreName(const QString &genreName) { genreName_ = genreName; }
|
||||
|
||||
// Getters (inline methods)
|
||||
inline qint32 genreId() const { return genreId_; }
|
||||
inline QString genreName() const { return genreName_; }
|
||||
};
|
||||
|
||||
#endif // GENRE_DTO_H
|
||||
Reference in New Issue
Block a user