39 lines
1.4 KiB
C++
39 lines
1.4 KiB
C++
|
|
#ifndef UPDATE_SESSION_REQUEST_H
|
||
|
|
#define UPDATE_SESSION_REQUEST_H
|
||
|
|
|
||
|
|
#include <QDateTime>
|
||
|
|
|
||
|
|
class UpdateSessionRequest {
|
||
|
|
private:
|
||
|
|
QDateTime beginAt_; // Session start time
|
||
|
|
double ticketPrice_; // Ticket price
|
||
|
|
qint32 hallId_; // Hall ID
|
||
|
|
qint32 movieId_; // Movie ID
|
||
|
|
qint32 sessionId_; // Session ID
|
||
|
|
|
||
|
|
public:
|
||
|
|
// Constructors
|
||
|
|
explicit UpdateSessionRequest() = default;
|
||
|
|
explicit UpdateSessionRequest(const QDateTime &beginAt, double ticketPrice,
|
||
|
|
qint32 hallId, qint32 movieId, qint32 sessionId)
|
||
|
|
: beginAt_(beginAt), hallId_(hallId), movieId_(movieId),
|
||
|
|
sessionId_(sessionId), ticketPrice_(ticketPrice) {}
|
||
|
|
|
||
|
|
// Setters (inline methods)
|
||
|
|
inline void setBeginAt(const QDateTime &beginAt) { beginAt_ = beginAt; }
|
||
|
|
inline void setHallId(qint32 hallId) { hallId_ = hallId; }
|
||
|
|
inline void setMovieId(qint32 movieId) { movieId_ = movieId; }
|
||
|
|
inline void setSessionId(qint32 sessionId) { sessionId_ = sessionId; }
|
||
|
|
inline void setTicketPrice(double ticketPrice) { ticketPrice_ = ticketPrice; }
|
||
|
|
|
||
|
|
// Getters (inline methods)
|
||
|
|
inline QDateTime beginAt() const { return beginAt_; }
|
||
|
|
inline double ticketPrice() const { return ticketPrice_; }
|
||
|
|
inline qint32 hallId() const { return hallId_; }
|
||
|
|
inline qint32 movieId() const { return movieId_; }
|
||
|
|
inline qint32 sessionId() const { return sessionId_; }
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // UPDATE_SESSION_REQUEST_H
|
||
|
|
|