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.
40 lines
1021 B
40 lines
1021 B
// Copyright 2019-2020 The Hush developers
|
|
// GPLv3
|
|
|
|
#ifndef CONTACTREQUEST_H
|
|
#define CONTACTREQUEST_H
|
|
|
|
#include <QString>
|
|
using json = nlohmann::json;
|
|
|
|
class ContactRequest
|
|
{
|
|
private:
|
|
QString _senderAddress;
|
|
QString _receiverAddress;
|
|
QString _memo;
|
|
QString _cid;
|
|
QString _label;
|
|
QString _avatar;
|
|
|
|
public:
|
|
ContactRequest();
|
|
ContactRequest(QString sender, QString receiver, QString memo, QString cid, QString label, QString avatar);
|
|
QString getSenderAddress();
|
|
QString getReceiverAddress();
|
|
QString getMemo();
|
|
QString getCid();
|
|
QString getLabel();
|
|
QString getAvatar();
|
|
void setSenderAddress(QString address);
|
|
void setReceiverAddress(QString contact);
|
|
void setMemo(QString memo);
|
|
void setCid(QString cid);
|
|
void setLabel(QString label);
|
|
void setAvatar(QString avatar);
|
|
QString toString();
|
|
void clear();
|
|
~ContactRequest();
|
|
};
|
|
|
|
#endif
|