82 lines
3.4 KiB
C++
82 lines
3.4 KiB
C++
#ifndef SESSION_STATISTICS_DTO_H
|
|
#define SESSION_STATISTICS_DTO_H
|
|
|
|
#include <QDateTime>
|
|
#include <QString>
|
|
|
|
class SessionStatisticsDTO {
|
|
private:
|
|
qint32 sessionId_;
|
|
QDateTime beginAt_;
|
|
double ticketPrice_;
|
|
qint32 hallId_;
|
|
QString hallName_;
|
|
qint32 totalSeats_;
|
|
qint32 movieId_;
|
|
QString movieTitle_;
|
|
qint32 duration_;
|
|
qint32 genreId_;
|
|
QString genreName_;
|
|
qint32 soldTickets_;
|
|
qint32 refundedTickets_;
|
|
double salesRevenue_;
|
|
double refundExpenses_;
|
|
|
|
public:
|
|
SessionStatisticsDTO() = default;
|
|
|
|
SessionStatisticsDTO(QDateTime beginAt, QString genreName, QString hallName,
|
|
QString movieTitle, double refundExpenses,
|
|
double salesRevenue, double ticketPrice, qint32 duration,
|
|
qint32 genreId, qint32 hallId, qint32 movieId,
|
|
qint32 refundedTickets, qint32 sessionId,
|
|
qint32 soldTickets, qint32 totalSeats)
|
|
: beginAt_(beginAt), duration_(duration), genreId_(genreId),
|
|
genreName_(genreName), hallId_(hallId), hallName_(hallName),
|
|
movieId_(movieId), movieTitle_(movieTitle),
|
|
refundExpenses_(refundExpenses), refundedTickets_(refundedTickets),
|
|
salesRevenue_(salesRevenue), sessionId_(sessionId),
|
|
soldTickets_(soldTickets), ticketPrice_(ticketPrice),
|
|
totalSeats_(totalSeats) {}
|
|
|
|
// clang-format off
|
|
|
|
// Getters
|
|
inline QDateTime beginAt() const { return beginAt_; }
|
|
inline QString genreName() const { return genreName_; }
|
|
inline QString hallName() const { return hallName_; }
|
|
inline QString movieTitle() const { return movieTitle_; }
|
|
inline double refundExpenses() const { return refundExpenses_; }
|
|
inline double salesRevenue() const { return salesRevenue_; }
|
|
inline double ticketPrice() const { return ticketPrice_; }
|
|
inline qint32 duration() const { return duration_; }
|
|
inline qint32 genreId() const { return genreId_; }
|
|
inline qint32 hallId() const { return hallId_; }
|
|
inline qint32 movieId() const { return movieId_; }
|
|
inline qint32 refundedTickets() const { return refundedTickets_; }
|
|
inline qint32 sessionId() const { return sessionId_; }
|
|
inline qint32 soldTickets() const { return soldTickets_; }
|
|
inline qint32 totalSeats() const { return totalSeats_; }
|
|
|
|
// Setters
|
|
inline void setBeginAt(QDateTime beginAt) { beginAt_ = beginAt; }
|
|
inline void setDuration(qint32 duration) { duration_ = duration; }
|
|
inline void setGenreId(qint32 genreId) { genreId_ = genreId; }
|
|
inline void setGenreName(QString genreName) { genreName_ = genreName; }
|
|
inline void setHallId(qint32 hallId) { hallId_ = hallId; }
|
|
inline void setHallName(QString hallName) { hallName_ = hallName; }
|
|
inline void setMovieId(qint32 movieId) { movieId_ = movieId; }
|
|
inline void setMovieTitle(QString movieTitle) { movieTitle_ = movieTitle; }
|
|
inline void setRefundExpenses(double refundExpenses) { refundExpenses_ = refundExpenses; }
|
|
inline void setRefundedTickets(qint32 refundedTickets) { refundedTickets_ = refundedTickets; }
|
|
inline void setSalesRevenue(double salesRevenue) { salesRevenue_ = salesRevenue; }
|
|
inline void setSessionId(qint32 sessionId) { sessionId_ = sessionId; }
|
|
inline void setSoldTickets(qint32 soldTickets) { soldTickets_ = soldTickets; }
|
|
inline void setTicketPrice(double ticketPrice) { ticketPrice_ = ticketPrice; }
|
|
inline void setTotalSeats(qint32 totalSeats) { totalSeats_ = totalSeats; }
|
|
|
|
// clang-format on
|
|
};
|
|
|
|
#endif // SESSION_STATISTICS_DTO_H
|