-
Notifications
You must be signed in to change notification settings - Fork 1
/
SearchFilter.h
43 lines (33 loc) · 936 Bytes
/
SearchFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include <string>
namespace LevelAPI {
namespace Backend {
enum SearchSort {
SSMostLiked = 0,
SSMostDownloaded,
SSLatestDBApperead,
SSRecentLevel,
SSOldestLevel,
SSNone
};
class SearchFilter {
public:
int m_nDifficulty = -1;
int m_nStars = -1;
SearchSort m_eSort = SSNone;
std::string m_sName = "";
std::string m_sDescription = "";
std::string m_sUsername = "";
int m_nPage = 1;
int m_nLevelsPerPage = 10;
int m_nUID = 0;
int m_nAID = 0;
std::string m_sReleaseGV = "";
int m_nServerGV = 0;
int m_nSID = -1;
bool m_bSongOfficial = false;
time_t timestamp_start = 0;
time_t timestamp_end = 0;
};
}
}