blob: c778c417b547e93b7e8d12c6f8ec81e3e878d871 (
plain)
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
|
#pragma once
#include "BridgeService.hpp"
namespace dchat
{
class DiscordServiceUser : public BridgeServiceUser
{
public:
DiscordServiceUser(const std::string &name, const u64 id, bool connected);
virtual ~DiscordServiceUser(){}
virtual bool isConnected(i64 timestampUtcSec) const override { return connected; }
bool equals(BridgeServiceUser *other) const override;
const u64 id;
bool connected;
};
class DiscordService : public BridgeService
{
public:
virtual ~DiscordService(){}
bool removeUser(u64 discordUserId);
DiscordServiceUser* getUserById(u64 discordUserId);
};
}
|