Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed uniqueCPUID
Fork of bcsdk by
Diff: Account.h
- Revision:
- 10:aabd720e632c
- Parent:
- 8:f2a567ee3a46
- Child:
- 12:1b24ea479a59
diff -r d7468574ef8f -r aabd720e632c Account.h --- a/Account.h Wed Sep 27 01:18:12 2017 +0000 +++ b/Account.h Fri Nov 03 01:07:32 2017 +0000 @@ -8,19 +8,43 @@ #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: - std::string id; - std::string alias; - Key* keys; - int quorum; - Map<std::string,Object> tags; + 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 +#endif \ No newline at end of file