1 #ifndef OPENTERA_WEBRTC_NATIVE_CLIENT_CONFIGURATIONS_SIGNALING_SERVER_CONFIGURATION_H
2 #define OPENTERA_WEBRTC_NATIVE_CLIENT_CONFIGURATIONS_SIGNALING_SERVER_CONFIGURATION_H
4 #include <nlohmann/json.hpp>
16 std::string m_clientName;
17 nlohmann::json m_clientData;
19 std::string m_password;
45 [[nodiscard]]
const std::string&
url()
const;
46 [[nodiscard]]
const std::string&
clientName()
const;
47 [[nodiscard]]
const nlohmann::json&
clientData()
const;
48 [[nodiscard]]
const std::string&
room()
const;
49 [[nodiscard]]
const std::string&
password()
const;
66 return {std::move(
url), std::move(
clientName), nlohmann::json{}, std::move(
room),
""};
80 std::string clientName,
81 nlohmann::json clientData,
98 std::string clientName,
100 std::string password)
117 std::string clientName,
118 nlohmann::json clientData,
120 std::string password)
Represents a signaling server configuration.
Definition: SignalingServerConfiguration.h:14
const nlohmann::json & clientData() const
Returns the client data.
Definition: SignalingServerConfiguration.h:141
const std::string & url() const
Returns the signaling server URL.
Definition: SignalingServerConfiguration.h:129
const std::string & clientName() const
Returns the client name.
Definition: SignalingServerConfiguration.h:135
static SignalingServerConfiguration create(std::string url, std::string clientName, std::string room)
Creates an signaling server configuration with the specified values.
Definition: SignalingServerConfiguration.h:64
const std::string & password() const
Returns the signaling server password.
Definition: SignalingServerConfiguration.h:153
const std::string & room() const
Returns the room name.
Definition: SignalingServerConfiguration.h:147
static SignalingServerConfiguration createWithData(std::string url, std::string clientName, nlohmann::json clientData, std::string room)
Creates an signaling server configuration with the specified values.
Definition: SignalingServerConfiguration.h:78