Use native tribufu sdk

This commit is contained in:
2024-08-25 16:29:26 -03:00
parent 60126abfa5
commit 5eb1e81f19
32 changed files with 98 additions and 947 deletions

View File

@ -1,11 +1,31 @@
// Copyright (c) Tribufu. All Rights Reserved.
#include <iostream>
#include <tribufu/client.h>
#include <tribufu++/sdk.h>
using namespace tribufu;
int main(int argc, char **argv)
{
if (TribufuSdk::Initialize())
{
std::cout << "Tribufu SDK initialized successfully!" << std::endl;
}
else
{
std::cout << "Failed to initialize Tribufu SDK!" << std::endl;
return 1;
}
if (TribufuSdk::Ping())
{
std::cout << "Tribufu SDK is online!" << std::endl;
}
else
{
std::cout << "Tribufu SDK is offline!" << std::endl;
}
TribufuSdk::Shutdown();
return 0;
}