Files
cloudsave-gui/information.cpp
2025-09-13 15:34:27 +02:00

19 lines
636 B
C++

#include "information.h"
Information::Information(QString version, QString apiVersion, QString goVersion, QString osName, QString osArchitecture) {
this->_version = version;
this->_apiVersion = apiVersion;
this->_goVersion = goVersion;
this->_osName = osName;
this->_osArchitecture = osArchitecture;
}
Information::Information(QJsonObject obj)
{
this->_version = obj["version"].toString();
this->_apiVersion = obj["api_version"].toString();
this->_goVersion = obj["go_version"].toString();
this->_osName = obj["os_name"].toString();
this->_osArchitecture = obj["os_architecture"].toString();
}