Skip to content

Commit 99ba277

Browse files
Merge pull request #57 from Shxde1/main
New features
2 parents 6fee289 + 2de30ae commit 99ba277

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

auth.hpp

+21-10
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace KeyAuth {
3636
void regstr(std::string username, std::string password, std::string key, std::string email = "");
3737
void chatget(std::string channel);
3838
bool chatsend(std::string message, std::string channel);
39-
void changeusername(std::string newusername);
39+
void changeUsername(std::string newusername);
4040
std::string fetchonline();
4141
void fetchstats();
4242
void forgot(std::string username, std::string email);
@@ -47,14 +47,9 @@ namespace KeyAuth {
4747
std::string expiry;
4848
};
4949

50-
class data_class {
50+
class userdata {
5151
public:
52-
// app data
53-
std::string numUsers;
54-
std::string numOnlineUsers;
55-
std::string numKeys;
56-
std::string version;
57-
std::string customerPanelLink;
52+
5853
// user data
5954
std::string username;
6055
std::string ip;
@@ -63,13 +58,29 @@ namespace KeyAuth {
6358
std::string lastlogin;
6459

6560
std::vector<subscriptions_class> subscriptions;
61+
};
6662

63+
class appdata {
64+
public:
65+
// app data
66+
std::string numUsers;
67+
std::string numOnlineUsers;
68+
std::string numKeys;
69+
std::string version;
70+
std::string customerPanelLink;
71+
};
72+
73+
class responsedata {
74+
public:
6775
// response data
6876
std::vector<channel_struct> channeldata;
69-
bool success;
77+
bool success{};
7078
std::string message;
7179
};
72-
data_class data;
80+
81+
userdata user_data;
82+
appdata app_data;
83+
responsedata response;
7384

7485
private:
7586
std::string sessionid, enckey;

library_x64.lib

1.23 KB
Binary file not shown.

0 commit comments

Comments
 (0)