diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-04-08 21:04:12 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-04-08 21:04:17 +0200 |
commit | 725ea566a2b6a12e0a02e4f570b6e99102e2d21b (patch) | |
tree | d35a338392e15f50402c2055d520e7b1c3ea36a2 /bridge/BridgeService.hpp | |
parent | 4aac8df198e3a5bd9c6efc95cdf4c520c2e05401 (diff) |
Refactor, remove a lot of code and use dchat core instead
Diffstat (limited to 'bridge/BridgeService.hpp')
-rw-r--r-- | bridge/BridgeService.hpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/bridge/BridgeService.hpp b/bridge/BridgeService.hpp deleted file mode 100644 index e536c81..0000000 --- a/bridge/BridgeService.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once - -#include <vector> -#include <string> -#include "../include/User.hpp" - -namespace dchat -{ - class BridgeServiceUser : public User - { - public: - enum class Type - { - DISCORD - }; - - BridgeServiceUser(Type type, const std::string &name); - virtual ~BridgeServiceUser(){} - - virtual const std::string& getName() const override { return name; } - virtual bool isConnected(i64 timestampUtcSec) const override { return true; } - - virtual bool equals(BridgeServiceUser *other) const = 0; - - const Type type; - private: - std::string name; - }; - - class BridgeService - { - public: - BridgeService(); - virtual ~BridgeService(); - - bool addUser(BridgeServiceUser *user); - const std::vector<User*>& getUsers() const; - protected: - std::vector<User*> users; - }; -}
\ No newline at end of file |