/** * The Party class represents a party. It holds the data and offers some conversion methods. * $Id$ * $HeadURL$ * $Author$ * Created by Hannes Baeuerle, SLSE, 2016-05-12 */ #pragma once #include #include namespace ParticipantManagement { namespace PartyHandling { class Party { public: explicit Party(const Database::PpmParty &data) : m_data(data) {} int32_t id() const { return m_data.id; } Database::PpmParty toDbParty() const; ParticipantManagement::Party toDdsParty() const; bool hasChanges(const ParticipantManagement::Party &request, const bool bIgnoreIsUsedBy); bool isUsedBy() const { return m_data.isUsedBy; } private: Database::PpmParty m_data; }; } // namespace PartyHandling } // namespace ParticipantManagement