The Battle for Wesnoth  1.19.7+dev
ban_check.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2020 - 2024
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 #include "mariadb++/result_set.hpp"
18 
20 
21 #include <chrono>
22 
23 class ban_check : public rs_base
24 {
25 public:
27  explicit ban_check(const mariadb::result_set& rslt);
28  void read(mariadb::result_set_ref rslt) override;
29  long get_ban_type();
30  std::chrono::seconds get_ban_duration();
31  int get_user_id();
32  std::string get_email();
33 
34 private:
35  long ban_type;
36  std::chrono::seconds ban_duration;
37  int user_id;
38  std::string email;
39 };
std::string get_email()
long get_ban_type()
std::chrono::seconds ban_duration
Definition: ban_check.hpp:36
std::chrono::seconds get_ban_duration()
void read(mariadb::result_set_ref rslt) override
std::string email
Definition: ban_check.hpp:38
int get_user_id()
int user_id
Definition: ban_check.hpp:37
long ban_type
Definition: ban_check.hpp:35
ban_check(const mariadb::result_set &rslt)