mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
Implemented login system.
This commit is contained in:
parent
a416c58a93
commit
e475f5d512
7 changed files with 142 additions and 22 deletions
|
|
@ -15,17 +15,27 @@
|
|||
|
||||
#include "loginresponse.h"
|
||||
|
||||
LoginResponse::LoginResponse(const QString& username, const QString& sessionID, QObject *parent) :
|
||||
LoginResponse::LoginResponse(const QString& username, const QString& sessionID,
|
||||
qint64 latestVersion, QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
this->username = username;
|
||||
this->sessionID = sessionID;
|
||||
this->latestVersion = latestVersion;
|
||||
}
|
||||
|
||||
LoginResponse::LoginResponse()
|
||||
{
|
||||
this->username = "";
|
||||
this->sessionID = "";
|
||||
this->latestVersion = 0;
|
||||
}
|
||||
|
||||
LoginResponse::LoginResponse(const LoginResponse &other)
|
||||
{
|
||||
this->username = other.username;
|
||||
this->sessionID = other.sessionID;
|
||||
this->username = other.getUsername();
|
||||
this->sessionID = other.getSessionID();
|
||||
this->latestVersion = other.getLatestVersion();
|
||||
}
|
||||
|
||||
QString LoginResponse::getUsername() const
|
||||
|
|
@ -47,3 +57,13 @@ void LoginResponse::setSessionID(const QString& sessionID)
|
|||
{
|
||||
this->sessionID = sessionID;
|
||||
}
|
||||
|
||||
qint64 LoginResponse::getLatestVersion() const
|
||||
{
|
||||
return latestVersion;
|
||||
}
|
||||
|
||||
void LoginResponse::setLatestVersion(qint64 v)
|
||||
{
|
||||
this->latestVersion = v;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue