mirror of
https://github.com/yawaflua/SpCloudCore.git
synced 2025-12-09 20:19:35 +02:00
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
#include <string>
|
|
|
|
class App {
|
|
private:
|
|
int id;
|
|
std::string name;
|
|
std::string authToken;
|
|
bool isBanned;
|
|
|
|
public:
|
|
// Конструктор
|
|
App(int id, const std::string& name, const std::string& authToken, bool isBanned)
|
|
: id(id), name(name), authToken(authToken), isBanned(isBanned) {}
|
|
|
|
// Геттеры и сеттеры для Id
|
|
int getId() const {
|
|
return id;
|
|
}
|
|
|
|
void setId(int id) {
|
|
this->id = id;
|
|
}
|
|
|
|
// Геттеры и сеттеры для Name
|
|
std::string getName() const {
|
|
return name;
|
|
}
|
|
|
|
void setName(const std::string& name) {
|
|
this->name = name;
|
|
}
|
|
|
|
// Геттеры и сеттеры для AuthToken
|
|
std::string getAuthToken() const {
|
|
return authToken;
|
|
}
|
|
|
|
void setAuthToken(const std::string& authToken) {
|
|
this->authToken = authToken;
|
|
}
|
|
|
|
// Геттеры и сеттеры для IsBanned
|
|
bool getIsBanned() const {
|
|
return isBanned;
|
|
}
|
|
|
|
void setIsBanned(bool isBanned) {
|
|
this->isBanned = isBanned;
|
|
}
|
|
};
|