|
OpenTera WebRTC API (C++) 1.2.6
|
Represents a room client. More...
#include <Client.h>
Public Member Functions | |
| RoomClient () | |
| Creates a room client with the default values. | |
| RoomClient (std::string id, std::string name, nlohmann::json data, bool isConnected) | |
| Creates a room client with the specified values. More... | |
| RoomClient (const Client &client, bool isConnected) | |
| Creates a room client from a client. More... | |
| RoomClient (const RoomClient &other)=default | |
| RoomClient (RoomClient &&other)=default | |
| const std::string & | id () const |
| Returns the client id. More... | |
| const std::string & | name () const |
| Returns the client name. More... | |
| const nlohmann::json & | data () const |
| Returns the client data. More... | |
| bool | isConnected () const |
| Indicates if the client is connected (RTCPeerConnection). More... | |
| operator Client () const | |
| RoomClient & | operator= (const RoomClient &other)=default |
| RoomClient & | operator= (RoomClient &&other)=default |
Friends | |
| bool | operator== (const RoomClient &c1, const RoomClient &c2) |
Represents a room client.
| RoomClient::RoomClient | ( | std::string | id, |
| std::string | name, | ||
| nlohmann::json | data, | ||
| bool | isConnected | ||
| ) |
Creates a room client with the specified values.
| id | The client id |
| name | The client name |
| data | The client data |
| isConnected | Indicates if the client is connected (RTCPeerConnection) |
| RoomClient::RoomClient | ( | const Client & | client, |
| bool | isConnected | ||
| ) |
Creates a room client from a client.
| client | The client |
| isConnected | Indicates if the client is connected (RTCPeerConnection) |
|
inline |
Returns the client data.
|
inline |
Returns the client id.
|
inline |
Indicates if the client is connected (RTCPeerConnection).
|
inline |
Returns the client name.