blockchain , sdchain cpp sdk and demo

Dependencies:   EthernetInterface mbed-rtos mbed uniqueCPUID

Fork of bcsdk by SDchain C Plus Plus Team

Account.h

Committer:
webmaster
Date:
2017-11-03
Revision:
10:aabd720e632c
Parent:
8:f2a567ee3a46
Child:
12:1b24ea479a59

File content as of revision 10:aabd720e632c:

/***********************************************************************
 * Module:  Account.h
 * Author:  Administrator
 * Modified: 2017Äê8ÔÂ18ÈÕ 11:06:20
 * Purpose: Declaration of the class Account
 * Comment: ÕË»§
 ***********************************************************************/

#if !defined(__Account_Account_h)
#define __Account_Account_h
#include <string>
#include <map>
#include "Key.h"
#include "Object.h"
using namespace std;

class Account
{
public:
	Account();
	Account(Key &key);
	~Account();

	std::string id;
	std::string alias;
	//Key* keys;	
	int quorum;
	map<std::string,Object> tags;

	void setId(const string newId){this->id = newId;};
	string getId(){return this->id;};

	void setAlias(const string newAlias){this->alias = newAlias;};
	string getAlias(){return this->alias;};

	void setQuorum(int newQuorum){this->quorum = newQuorum;};
	int getQuorum(){return this->quorum;};

	string createAccount();
	string listAccounts();

protected:
private:
	Client client;
	MbedJSONValue m_valTags;
	Key m_Keys;

};

#endif