31 lines
930 B
C++
31 lines
930 B
C++
|
|
#ifndef CREATE_MOVIE_REQUEST_H
|
||
|
|
#define CREATE_MOVIE_REQUEST_H
|
||
|
|
|
||
|
|
#include <QString>
|
||
|
|
|
||
|
|
class CreateMovieRequest {
|
||
|
|
private:
|
||
|
|
QString title_; // Movie title
|
||
|
|
qint32 duration_; // Movie duration
|
||
|
|
qint32 genreId_; // Genre ID
|
||
|
|
|
||
|
|
public:
|
||
|
|
// Constructors
|
||
|
|
explicit CreateMovieRequest() = default;
|
||
|
|
explicit CreateMovieRequest(const QString &title, qint32 duration,
|
||
|
|
qint32 genreId)
|
||
|
|
: title_(title), duration_(duration), genreId_(genreId) {}
|
||
|
|
|
||
|
|
// Setters (inline methods)
|
||
|
|
inline void setTitle(const QString &title) { title_ = title; }
|
||
|
|
inline void setDuration(qint32 duration) { duration_ = duration; }
|
||
|
|
inline void setGenreId(qint32 genreId) { genreId_ = genreId; }
|
||
|
|
|
||
|
|
// Getters (inline methods)
|
||
|
|
inline QString title() const { return title_; }
|
||
|
|
inline qint32 duration() const { return duration_; }
|
||
|
|
inline qint32 genreId() const { return genreId_; }
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // CREATE_MOVIE_REQUEST_H
|