35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
#ifndef CREATE_SESSION_REQUEST_H
|
|
#define CREATE_SESSION_REQUEST_H
|
|
|
|
#include <QDateTime>
|
|
|
|
class CreateSessionRequest {
|
|
private:
|
|
QDateTime beginAt_; // Session start time
|
|
double ticketPrice_; // Ticket price
|
|
qint32 hallId_; // Hall ID
|
|
qint32 movieId_; // Movie ID
|
|
|
|
public:
|
|
// Constructors
|
|
explicit CreateSessionRequest() = default;
|
|
explicit CreateSessionRequest(const QDateTime &beginAt, double ticketPrice,
|
|
qint32 hallId, qint32 movieId)
|
|
: beginAt_(beginAt), ticketPrice_(ticketPrice), hallId_(hallId),
|
|
movieId_(movieId) {}
|
|
|
|
// Setters (inline methods)
|
|
inline void setBeginAt(const QDateTime &beginAt) { beginAt_ = beginAt; }
|
|
inline void setTicketPrice(double ticketPrice) { ticketPrice_ = ticketPrice; }
|
|
inline void setHallId(qint32 hallId) { hallId_ = hallId; }
|
|
inline void setMovieId(qint32 movieId) { movieId_ = movieId; }
|
|
|
|
// 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_; }
|
|
};
|
|
|
|
#endif // CREATE_SESSION_REQUEST_H
|