mirror of
https://gitlab.com/comunic/comunicterm
synced 2024-11-16 18:41:07 +00:00
48 lines
628 B
C++
48 lines
628 B
C++
|
#include "user.h"
|
||
|
|
||
|
User::User()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
User::User(int id, std::string firstName, std::string lastName)
|
||
|
: mID(id), mFirstName(firstName), mLastName(lastName)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
int User::iD() const
|
||
|
{
|
||
|
return mID;
|
||
|
}
|
||
|
|
||
|
void User::setID(int iD)
|
||
|
{
|
||
|
mID = iD;
|
||
|
}
|
||
|
|
||
|
std::string User::firstName() const
|
||
|
{
|
||
|
return mFirstName;
|
||
|
}
|
||
|
|
||
|
void User::setFirstName(const std::string &firstName)
|
||
|
{
|
||
|
mFirstName = firstName;
|
||
|
}
|
||
|
|
||
|
std::string User::lastName() const
|
||
|
{
|
||
|
return mLastName;
|
||
|
}
|
||
|
|
||
|
void User::setLastName(const std::string &lastName)
|
||
|
{
|
||
|
mLastName = lastName;
|
||
|
}
|
||
|
|
||
|
std::string User::fullName() const
|
||
|
{
|
||
|
return mFirstName + " " + mLastName;
|
||
|
}
|