Set up codebase
- Define models, factory classes, data store, utility classes (timestamp, io helpers, enums, validator) - Define Model Class Structures - Add new model Log - Add new service LogService - Add Factory class - Add Utilities like Timestamp, Validator, Input/Output Helpers.. Co-authored-by: Tinu Johnson <tinu.johnson@trenser.com> Co-authored-by: Princy Jerin <princy.jerin@trenser.com> Co-authored-by: Ajmal Jalaludeen <ajmal.jalaludeen@trenser.com> Co-authored-by: Jissin Sam Mathew <jissin.mathew@trenser.com>
This commit is contained in:
@@ -1 +1,34 @@
|
||||
#include "Room.h"
|
||||
|
||||
const std::string& Room::getRoomId() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
const std::string& Room::getRoomName() const
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
|
||||
const bookingMap& Room::getBookings() const
|
||||
{
|
||||
return m_bookings;
|
||||
}
|
||||
|
||||
void Room::setRoomId(const std::string& id)
|
||||
{
|
||||
m_id = id;
|
||||
}
|
||||
|
||||
void Room::setRoomName(const std::string& name)
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
|
||||
void Room::addBooking(std::shared_ptr<Booking> booking)
|
||||
{
|
||||
if (booking)
|
||||
{
|
||||
m_bookings[booking->getBookingId()] = booking;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user