AutoCatQt/models/User.h
2023-06-12 10:46:46 +03:00

29 lines
562 B
C++

//
// Created by selim on 5/6/23.
//
#ifndef AUTOCATQT_USER_H
#define AUTOCATQT_USER_H
#include <string>
#include <optional>
#include <nlohmann/json.hpp>
class User {
public:
std::string email;
std::string token;
std::optional<std::string> googleIdToken;
std::optional<std::string> googleRefreshToken;
public:
User() = default;
User(const User& user) = default;
User(User&&) = default;
User(std::string_view email, std::string_view token);
NLOHMANN_DEFINE_TYPE_INTRUSIVE(User, email, token)
};
#endif //AUTOCATQT_USER_H