|
2 | 2 | * Contains general objects for working with VK API. |
3 | 3 | * @file ClientBase.hpp |
4 | 4 | * @author qucals |
5 | | - * @version 0.0.6 19/08/21 |
| 5 | + * @version 0.0.7 24/08/21 |
6 | 6 | */ |
7 | 7 |
|
8 | | -#pragma once |
9 | | - |
10 | 8 | #ifndef VKAPI_CLIENTBASE_HPP |
11 | 9 | #define VKAPI_CLIENTBASE_HPP |
12 | 10 |
|
13 | | -#include <Config.hpp> |
| 11 | +#include "Config.hpp" |
14 | 12 |
|
15 | | -#include <Request.hpp> // Request |
16 | | -#include <Utilities.hpp> // ConvertStrToUrlCode |
17 | | -#include <Exceptions.hpp> // already_connected, not_connected, empty_argument |
18 | | -#include <Defines.hpp> |
| 13 | +#include "Request.hpp" // Request |
| 14 | +#include "Utilities.hpp" // ConvertStrToUrlCode |
| 15 | +#include "Exceptions.hpp" // already_connected, not_connected, empty_argument |
| 16 | +#include "Defines.hpp" |
19 | 17 |
|
20 | 18 | #ifdef __VKAPI_VERSION_ADDED_OPTIONAL |
21 | 19 | #if __VKAPI_COMPILED_VERSION >= __VKAPI_VERSION_ADDED_OPTIONAL |
22 | | -#include <Optional.hpp> |
| 20 | +#include "Optional.hpp" |
23 | 21 | #endif // __VKAPI_COMPILED_VERSION >= __VKAPI_VERSION_ADDED_OPTIONAL |
24 | 22 | #endif // __VKAPI_VERSION_ADDED_OPTIONAL |
25 | 23 |
|
26 | 24 | #include <iostream> // cout, endl |
27 | 25 | #include <random> // rand |
28 | 26 | #include <set> // set |
29 | 27 | #include <string> // string |
| 28 | +#include <iterator> // begin, end |
30 | 29 |
|
31 | 30 | #ifdef __CPLUSPLUS_OVER_11 |
32 | 31 | #include <future> // async, future |
33 | 32 | #endif // __CPLUSPLUS_OVER_11 |
34 | 33 |
|
35 | | -#include <nlohmann/json.hpp> // nlohmann::json |
| 34 | +#include "nlohmann/json.hpp" // nlohmann::json |
36 | 35 |
|
37 | 36 | namespace vk |
38 | 37 | { |
39 | 38 |
|
40 | 39 | namespace base |
41 | 40 | { |
42 | 41 |
|
43 | | -#ifdef __VKAPI_VERSION_ADDED_OPTIONAL |
44 | | -#if __VKAPI_COMPILED_VERSION < __VKAPI_VERSION_ADDED_OPTIONAL |
45 | | -typedef nlohmann::json JsonType; |
46 | | -#endif // __VKAPI_COMPILED_VERSION < __VKAPI_VERSION_ADDED_OPTIONAL |
47 | | -#else |
| 42 | +#ifndef VKAPI_OPTIONAL_HPP |
48 | 43 | typedef nlohmann::json JsonType; |
49 | | -#endif // __VKAPI_VERSION_ADDED_OPTIONAL |
| 44 | + |
| 45 | +typedef long long int IdType; |
| 46 | +typedef unsigned long long UIdType; |
| 47 | +typedef bool IndicatorType; |
| 48 | +#endif // VKAPI_OPTIONAL_HPP |
50 | 49 |
|
51 | 50 | #define VKAPI_INVALID_REQUEST "invalid_request" |
52 | 51 | #define VKAPI_NEED_CAPTCHA "need_captcha" |
|
0 commit comments