Hush lite wallet
https://faq.hush.is/sdl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.1 KiB
67 lines
1.1 KiB
// Copyright 2019-2020 The Hush developers
|
|
// GPLv3
|
|
|
|
#include "ContactRequest.h"
|
|
|
|
ContactRequest::ContactRequest() {}
|
|
|
|
ContactRequest::ContactRequest(QString sender, QString receiver, QString memo, QString cid)
|
|
{
|
|
_senderAddress = sender;
|
|
_receiverAddress = receiver;
|
|
_memo = memo;
|
|
_cid = cid;
|
|
}
|
|
|
|
QString ContactRequest::getSenderAddress()
|
|
{
|
|
return _senderAddress;
|
|
}
|
|
|
|
QString ContactRequest::getReceiverAddress()
|
|
{
|
|
return _receiverAddress;
|
|
}
|
|
|
|
QString ContactRequest::getMemo()
|
|
{
|
|
return _memo;
|
|
}
|
|
|
|
QString ContactRequest::getCid()
|
|
{
|
|
return _cid;
|
|
}
|
|
|
|
void ContactRequest::setSenderAddress(QString address)
|
|
{
|
|
_senderAddress = address;
|
|
}
|
|
|
|
void ContactRequest::setReceiverAddress(QString address)
|
|
{
|
|
_receiverAddress = address;
|
|
}
|
|
|
|
void ContactRequest::setMemo(QString memo)
|
|
{
|
|
_memo = memo;
|
|
}
|
|
|
|
void ContactRequest::setCid(QString cid)
|
|
{
|
|
_cid = cid;
|
|
}
|
|
|
|
QString ContactRequest::toString()
|
|
{
|
|
return "sender: " + _senderAddress + " receiver: " + _receiverAddress + " memo: " + _memo + " cid: " + _cid;
|
|
}
|
|
|
|
ContactRequest::~ContactRequest()
|
|
{
|
|
_senderAddress = "";
|
|
_receiverAddress = "";
|
|
_memo = "";
|
|
_cid = "";
|
|
}
|