Babel
Epitech's C++ VoIP project
Server
src
User.hpp
Go to the documentation of this file.
1
//
2
// Created by cbihan on 10/10/2021.
3
//
4
5
#pragma once
6
7
#include <string>
8
#include <cstdint>
9
10
namespace
Babel
11
{
12
struct
User
13
{
15
std::string
username
;
17
uint64_t
connectionId
= 0;
19
bool
canBeCalled
=
false
;
20
21
22
inline
bool
isConnected
()
const
23
{
24
return
!this->username.empty();
25
};
26
27
inline
bool
isCallable
()
const
28
{
29
return
this->
isConnected
() && this->
canBeCalled
;
30
};
31
32
};
33
34
35
}
Babel::User::connectionId
uint64_t connectionId
conenctionId is used when trying to communicate with this user
Definition:
User.hpp:17
Babel::User::canBeCalled
bool canBeCalled
Tells if the user can be called.
Definition:
User.hpp:19
Babel::User::isConnected
bool isConnected() const
Definition:
User.hpp:22
Babel
Definition:
IAudioManager.hpp:13
Babel::User
Definition:
User.hpp:12
Babel::User::isCallable
bool isCallable() const
Definition:
User.hpp:27
Babel::User::username
std::string username
Username of the user.
Definition:
User.hpp:15
Generated by
1.8.17