#pragma once
-#include "stg/optional.h"
#include "user_traff.h"
#include <ctime>
#include <map>
#include <utility>
#include <string>
+#include <optional>
namespace STG
{
UserStatOpt(UserStatOpt&&) = default;
UserStatOpt& operator=(UserStatOpt&&) = default;
- Optional<double> cash;
- Optional<CashInfo> cashAdd;
- Optional<CashInfo> cashSet;
- Optional<double> freeMb;
- Optional<double> lastCashAdd;
- Optional<time_t> lastCashAddTime;
- Optional<time_t> passiveTime;
- Optional<time_t> lastActivityTime;
+ std::optional<double> cash;
+ std::optional<CashInfo> cashAdd;
+ std::optional<CashInfo> cashSet;
+ std::optional<double> freeMb;
+ std::optional<double> lastCashAdd;
+ std::optional<time_t> lastCashAddTime;
+ std::optional<time_t> passiveTime;
+ std::optional<time_t> lastActivityTime;
DirTraffOpt sessionUp;
DirTraffOpt sessionDown;
DirTraffOpt monthUp;