36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
|
|
#ifndef UPDATE_MOVIE_REQUEST_H
|
||
|
|
#define UPDATE_MOVIE_REQUEST_H
|
||
|
|
|
||
|
|
#include <QString>
|
||
|
|
|
||
|
|
class UpdateMovieRequest {
|
||
|
|
private:
|
||
|
|
QString title_; // Movie title
|
||
|
|
qint32 duration_; // Movie duration
|
||
|
|
qint32 genreId_; // Genre ID
|
||
|
|
qint32 movieId_; // Movie ID
|
||
|
|
|
||
|
|
public:
|
||
|
|
// Constructors
|
||
|
|
explicit UpdateMovieRequest() = default;
|
||
|
|
explicit UpdateMovieRequest(qint32 movieId, const QString &title,
|
||
|
|
qint32 duration, qint32 genreId)
|
||
|
|
: movieId_(movieId), title_(title), duration_(duration),
|
||
|
|
genreId_(genreId) {}
|
||
|
|
|
||
|
|
// Setters (inline methods)
|
||
|
|
inline void setDuration(qint32 duration) { duration_ = duration; }
|
||
|
|
inline void setGenreId(qint32 genreId) { genreId_ = genreId; }
|
||
|
|
inline void setMovieId(qint32 movieId) { movieId_ = movieId; }
|
||
|
|
inline void setTitle(const QString &title) { title_ = title; }
|
||
|
|
|
||
|
|
// Getters (inline methods)
|
||
|
|
inline QString title() const { return title_; }
|
||
|
|
inline qint32 duration() const { return duration_; }
|
||
|
|
inline qint32 genreId() const { return genreId_; }
|
||
|
|
inline qint32 movieId() const { return movieId_; }
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // UPDATE_MOVIE_REQUEST_H
|
||
|
|
|