AutoCatGnome/models/User.h

30 lines
579 B
C++

//
// Created by selim on 05.01.2022.
//
#ifndef AUTOCAT_GNOME_USER_H
#define AUTOCAT_GNOME_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 //AUTOCAT_GNOME_USER_H