59 lines
1.2 KiB
C++
59 lines
1.2 KiB
C++
/*
|
|
File: Notification.cpp
|
|
* Description : Represents an employee notification with message and status details.
|
|
* Author : Trenser
|
|
* Created : 31-Mar-2026
|
|
*/
|
|
#include "Notification.h"
|
|
|
|
int Notification::m_uid = 0;
|
|
|
|
const std::string& Notification::getNotificationId() const
|
|
{
|
|
return m_id;
|
|
}
|
|
|
|
const std::string& Notification::getEmployeeId() const
|
|
{
|
|
return m_employeeId;
|
|
}
|
|
|
|
const std::string& Notification::getNotificationMessage() const
|
|
{
|
|
return m_message;
|
|
}
|
|
|
|
const util::Timestamp& Notification::getNotificationTimestamp() const
|
|
{
|
|
return m_timestamp;
|
|
}
|
|
|
|
Enums::NotificationStatus Notification::getNotificationStatus() const
|
|
{
|
|
return m_notificationStatus;
|
|
}
|
|
|
|
void Notification::setNotificationId(const std::string& id)
|
|
{
|
|
m_id = id;
|
|
}
|
|
|
|
void Notification::setEmployeeId(const std::string& employeeId)
|
|
{
|
|
m_employeeId = employeeId;
|
|
}
|
|
|
|
void Notification::setNotificationMessage(const std::string& message)
|
|
{
|
|
m_message = message;
|
|
}
|
|
|
|
void Notification::setNotificationTimestamp(const util::Timestamp& timestamp)
|
|
{
|
|
m_timestamp = timestamp;
|
|
}
|
|
|
|
void Notification::setNotificationStatus(Enums::NotificationStatus status)
|
|
{
|
|
m_notificationStatus = status;
|
|
} |