mirror of https://github.com/nymea/nymea.git
24 lines
339 B
C++
24 lines
339 B
C++
#include "rule.h"
|
|
|
|
Rule::Rule(const QUuid &id, const QUuid &triggerTypeId, const Action &action):
|
|
m_id(id),
|
|
m_triggerTypeId(triggerTypeId),
|
|
m_action(action)
|
|
{
|
|
}
|
|
|
|
QUuid Rule::id() const
|
|
{
|
|
return m_id;
|
|
}
|
|
|
|
QUuid Rule::triggerTypeId() const
|
|
{
|
|
return m_triggerTypeId;
|
|
}
|
|
|
|
Action Rule::action() const
|
|
{
|
|
return m_action;
|
|
}
|