69 lines
1.6 KiB
C++
69 lines
1.6 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Contact.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/09/04 00:27:59 by aortigos #+# #+# */
|
|
/* Updated: 2025/09/05 16:16:35 by aortigos ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "Contact.hpp"
|
|
|
|
Contact::Contact()
|
|
{
|
|
this->name = "NULL";
|
|
}
|
|
|
|
std::string Contact::getName()
|
|
{
|
|
return (this->name);
|
|
}
|
|
|
|
std::string Contact::getSurname()
|
|
{
|
|
return (this->surname);
|
|
}
|
|
|
|
std::string Contact::getNickname()
|
|
{
|
|
return (this->nickname);
|
|
}
|
|
|
|
std::string Contact::getPhoneNumber()
|
|
{
|
|
return (this->phoneNumber);
|
|
}
|
|
|
|
std::string Contact::getSecret()
|
|
{
|
|
return (this->secret);
|
|
}
|
|
|
|
void Contact::setName(std::string str)
|
|
{
|
|
this->name = str;
|
|
}
|
|
|
|
void Contact::setSurname(std::string str)
|
|
{
|
|
this->surname = str;
|
|
}
|
|
|
|
void Contact::setNickname(std::string str)
|
|
{
|
|
this->nickname = str;
|
|
}
|
|
|
|
void Contact::setPhoneNumber(std::string str)
|
|
{
|
|
this->phoneNumber = str;
|
|
}
|
|
|
|
void Contact::setSecret(std::string str)
|
|
{
|
|
this->secret = str;
|
|
}
|