first commit
This commit is contained in:
18
information.cpp
Normal file
18
information.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user