1
0
This repository has been archived on 2025-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
siadrive/SiaDrive.Api/SiaApi.cpp
Scott E. Graves 15ac0d00fb Added TODO
2017-02-05 20:58:55 -06:00

26 lines
414 B
C++

#include "stdafx.h"
#include "SiaApi.h"
using namespace Sia::Api;
CSiaApi::CSiaApi(const SiaHostConfig& hostConfig) :
_siaCurl(hostConfig),
_wallet(new CSiaWallet(_siaCurl))
{
}
CSiaApi::~CSiaApi()
{
//TODO Make this an option to lock on exit
_wallet->Lock();
}
String CSiaApi::GetServerVersion() const
{
return _siaCurl.GetServerVersion();
}
CSiaWalletPtr CSiaApi::GetWallet() const
{
return _wallet;
}