| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * author: Patrick-Christopher Mattulat
- * e-mail: webmaster@lynarstudios.com
- */
- #include <interface/AStatusCode.hpp>
- #include <ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp>
- using ls::atlantis::interfaces::AStatusCode;
- using ls::std::core::EmptyStringArgumentEvaluator;
- using ::std::move;
- using ::std::string;
- using ::std::vector;
- AStatusCode::AStatusCode(const uint16_t &_statusId, string _statusText) : statusId(_statusId), statusText(::move(_statusText))
- {}
- AStatusCode::~AStatusCode() = default;
- void AStatusCode::addHint(const string &_hint)
- {
- EmptyStringArgumentEvaluator(_hint).evaluate();
- this->statusHints.push_back(_hint);
- }
- vector<string> AStatusCode::getHints() const
- {
- return this->statusHints;
- }
- uint16_t AStatusCode::getId() const
- {
- return this->statusId;
- }
- string AStatusCode::getText() const
- {
- return this->statusText;
- }
|