Represents a peer client.  
 More...
#include <Client.h>
 | 
|   | Client (std::string id, std::string name, nlohmann::json data) | 
|   | Creates a client with the specified values.  More...
  | 
|   | 
| 
  | Client (const nlohmann::json &message) | 
|   | 
| 
  | Client (const Client &other)=default | 
|   | 
| 
  | Client (Client &&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...
  | 
|   | 
| 
Client &  | operator= (const Client &other)=default | 
|   | 
| 
Client &  | operator= (Client &&other)=default | 
|   | 
 | 
| 
static bool  | isValid (const nlohmann::json &message) | 
|   | 
Represents a peer client. 
 
◆ Client()
      
        
          | Client::Client  | 
          ( | 
          std::string  | 
          id,  | 
        
        
           | 
           | 
          std::string  | 
          name,  | 
        
        
           | 
           | 
          nlohmann::json  | 
          data  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Creates a client with the specified values. 
- Parameters
 - 
  
    | id | The client id  | 
    | name | The client name  | 
    | data | The client data  | 
  
   
 
 
◆ data()
  
  
      
        
          | const nlohmann::json & opentera::Client::data  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Returns the client data. 
- Returns
 - The client data 
 
 
 
◆ id()
  
  
      
        
          | const std::string & opentera::Client::id  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Returns the client id. 
- Returns
 - The client id 
 
 
 
◆ name()
  
  
      
        
          | const std::string & opentera::Client::name  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Returns the client name. 
- Returns
 - The client name 
 
 
 
The documentation for this class was generated from the following files: