Files
2026-07-12 14:34:52 +04:00

30 lines
863 B
C++

#ifndef HALL_DTO_H
#define HALL_DTO_H
#include <QString>
class HallDTO {
private:
QString hallName_; // Hall name
qint32 capacity_; // Hall capacity
qint32 hallId_; // Unique ID for the hall
public:
// Constructors
explicit HallDTO() = default;
explicit HallDTO(const QString &hallName, qint32 capacity, qint32 hallId)
: hallName_(hallName), capacity_(capacity), hallId_(hallId) {}
// Setters (inline methods)
inline void setHallName(const QString &hallName) { hallName_ = hallName; }
inline void setCapacity(qint32 capacity) { capacity_ = capacity; }
inline void setHallId(qint32 hallId) { hallId_ = hallId; }
// Getters (inline methods)
inline QString hallName() const { return hallName_; }
inline qint32 capacity() const { return capacity_; }
inline qint32 hallId() const { return hallId_; }
};
#endif // HALL_DTO_H