Commit fa479528 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Apply Clang-format

parent 748683f4
...@@ -30,66 +30,71 @@ AuthenticationResultDeletionApi::AuthenticationResultDeletionApi( ...@@ -30,66 +30,71 @@ AuthenticationResultDeletionApi::AuthenticationResultDeletionApi(
router = rtr; router = rtr;
} }
void AuthenticationResultDeletionApi::init() { setupRoutes(); } void AuthenticationResultDeletionApi::init() {
setupRoutes();
}
void AuthenticationResultDeletionApi::setupRoutes() { void AuthenticationResultDeletionApi::setupRoutes() {
using namespace Pistache::Rest; using namespace Pistache::Rest;
Routes::Delete(*router, Routes::Delete(
base + "/ue-authentications/:authCtxId/5g-aka-confirmation", *router, base + "/ue-authentications/:authCtxId/5g-aka-confirmation",
Routes::bind(&AuthenticationResultDeletionApi:: Routes::bind(
&AuthenticationResultDeletionApi::
delete5g_aka_authentication_result_handler, delete5g_aka_authentication_result_handler,
this)); this));
Routes::Delete(*router, base + "/ue-authentications/:authCtxId/eap-session", Routes::Delete(
Routes::bind(&AuthenticationResultDeletionApi:: *router, base + "/ue-authentications/:authCtxId/eap-session",
Routes::bind(
&AuthenticationResultDeletionApi::
delete_eap_authentication_result_handler, delete_eap_authentication_result_handler,
this)); this));
// Default handler, called when a route is not found // Default handler, called when a route is not found
router->addCustomHandler( router->addCustomHandler(Routes::bind(
Routes::bind(&AuthenticationResultDeletionApi:: &AuthenticationResultDeletionApi::
authentication_result_deletion_api_default_handler, authentication_result_deletion_api_default_handler,
this)); this));
} }
void AuthenticationResultDeletionApi:: void AuthenticationResultDeletionApi::
delete5g_aka_authentication_result_handler( delete5g_aka_authentication_result_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the path params // Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>(); auto authCtxId = request.param(":authCtxId").as<std::string>();
try { try {
this->delete5g_aka_authentication_result(authCtxId, response); this->delete5g_aka_authentication_result(authCtxId, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
} }
} }
void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler( void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the path params // Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>(); auto authCtxId = request.param(":authCtxId").as<std::string>();
try { try {
this->delete_eap_authentication_result(authCtxId, response); this->delete_eap_authentication_result(authCtxId, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
...@@ -98,12 +103,13 @@ void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler( ...@@ -98,12 +103,13 @@ void AuthenticationResultDeletionApi::delete_eap_authentication_result_handler(
void AuthenticationResultDeletionApi:: void AuthenticationResultDeletionApi::
authentication_result_deletion_api_default_handler( authentication_result_deletion_api_default_handler(
const Pistache::Rest::Request &, const Pistache::Rest::Request&,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
cout << "----------authentication_result_deletion_api_default_handler--------" cout << "----------authentication_result_deletion_api_default_handler--------"
"----" "----"
<< endl; << endl;
response.send(Pistache::Http::Code::Not_Found, response.send(
Pistache::Http::Code::Not_Found,
"The requested method does not exist-resDel"); "The requested method does not exist-resDel");
} }
......
...@@ -35,24 +35,24 @@ namespace api { ...@@ -35,24 +35,24 @@ namespace api {
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class AuthenticationResultDeletionApi { class AuthenticationResultDeletionApi {
public: public:
AuthenticationResultDeletionApi(std::shared_ptr<Pistache::Rest::Router>); AuthenticationResultDeletionApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~AuthenticationResultDeletionApi() {} virtual ~AuthenticationResultDeletionApi() {}
void init(); void init();
const std::string base = "/nausf-auth/v1"; const std::string base = "/nausf-auth/v1";
private: private:
void setupRoutes(); void setupRoutes();
void delete5g_aka_authentication_result_handler( void delete5g_aka_authentication_result_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void delete_eap_authentication_result_handler( void delete_eap_authentication_result_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void authentication_result_deletion_api_default_handler( void authentication_result_deletion_api_default_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router; std::shared_ptr<Pistache::Rest::Router> router;
...@@ -65,8 +65,8 @@ private: ...@@ -65,8 +65,8 @@ private:
/// </remarks> /// </remarks>
/// <param name="authCtxId"></param> /// <param name="authCtxId"></param>
virtual void delete5g_aka_authentication_result( virtual void delete5g_aka_authentication_result(
const std::string &authCtxId, const std::string& authCtxId,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// Deletes the authentication result in the UDM /// Deletes the authentication result in the UDM
...@@ -76,8 +76,8 @@ private: ...@@ -76,8 +76,8 @@ private:
/// </remarks> /// </remarks>
/// <param name="authCtxId"></param> /// <param name="authCtxId"></param>
virtual void delete_eap_authentication_result( virtual void delete_eap_authentication_result(
const std::string &authCtxId, const std::string& authCtxId,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
}; };
} // namespace api } // namespace api
......
...@@ -30,12 +30,15 @@ DefaultApi::DefaultApi(std::shared_ptr<Pistache::Rest::Router> rtr) { ...@@ -30,12 +30,15 @@ DefaultApi::DefaultApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr; router = rtr;
} }
void DefaultApi::init() { setupRoutes(); } void DefaultApi::init() {
setupRoutes();
}
void DefaultApi::setupRoutes() { void DefaultApi::setupRoutes() {
using namespace Pistache::Rest; using namespace Pistache::Rest;
Routes::Post(*router, base + "/ue-authentications/:authCtxId/eap-session", Routes::Post(
*router, base + "/ue-authentications/:authCtxId/eap-session",
Routes::bind(&DefaultApi::eap_auth_method_handler, this)); Routes::bind(&DefaultApi::eap_auth_method_handler, this));
Routes::Post( Routes::Post(
*router, base + "/rg-authentications", *router, base + "/rg-authentications",
...@@ -48,8 +51,8 @@ void DefaultApi::setupRoutes() { ...@@ -48,8 +51,8 @@ void DefaultApi::setupRoutes() {
this)); this));
Routes::Post( Routes::Post(
*router, base + "/ue-authentications/deregister", *router, base + "/ue-authentications/deregister",
Routes::bind(&DefaultApi::ue_authentications_deregister_post_handler, Routes::bind(
this)); &DefaultApi::ue_authentications_deregister_post_handler, this));
Routes::Post( Routes::Post(
*router, base + "/ue-authentications", *router, base + "/ue-authentications",
Routes::bind(&DefaultApi::ue_authentications_post_handler, this)); Routes::bind(&DefaultApi::ue_authentications_post_handler, this));
...@@ -60,7 +63,7 @@ void DefaultApi::setupRoutes() { ...@@ -60,7 +63,7 @@ void DefaultApi::setupRoutes() {
} }
void DefaultApi::eap_auth_method_handler( void DefaultApi::eap_auth_method_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the path params // Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>(); auto authCtxId = request.param(":authCtxId").as<std::string>();
...@@ -72,26 +75,23 @@ void DefaultApi::eap_auth_method_handler( ...@@ -72,26 +75,23 @@ void DefaultApi::eap_auth_method_handler(
try { try {
nlohmann::json::parse(request.body()).get_to(eapSession); nlohmann::json::parse(request.body()).get_to(eapSession);
this->eap_auth_method(authCtxId, eapSession, response); this->eap_auth_method(authCtxId, eapSession, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
} }
} }
void DefaultApi::rg_authentications_post_handler( void DefaultApi::rg_authentications_post_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the body param // Getting the body param
RgAuthenticationInfo rgAuthenticationInfo; RgAuthenticationInfo rgAuthenticationInfo;
...@@ -99,14 +99,14 @@ void DefaultApi::rg_authentications_post_handler( ...@@ -99,14 +99,14 @@ void DefaultApi::rg_authentications_post_handler(
try { try {
nlohmann::json::parse(request.body()).get_to(rgAuthenticationInfo); nlohmann::json::parse(request.body()).get_to(rgAuthenticationInfo);
this->rg_authentications_post(rgAuthenticationInfo, response); this->rg_authentications_post(rgAuthenticationInfo, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
...@@ -114,12 +114,13 @@ void DefaultApi::rg_authentications_post_handler( ...@@ -114,12 +114,13 @@ void DefaultApi::rg_authentications_post_handler(
} }
void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler( void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
Logger::ausf_server().info("--Received 5g_aka_confirmation put Request"); Logger::ausf_server().info("--Received 5g_aka_confirmation put Request");
// Getting the path params // Getting the path params
auto authCtxId = request.param(":authCtxId").as<std::string>(); auto authCtxId = request.param(":authCtxId").as<std::string>();
Logger::ausf_server().info("5gaka confirmation received with authctxID %s",authCtxId.c_str()); Logger::ausf_server().info(
"5gaka confirmation received with authctxID %s", authCtxId.c_str());
// Getting the body param // Getting the body param
...@@ -130,15 +131,15 @@ void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler( ...@@ -130,15 +131,15 @@ void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
Logger::ausf_server().debug("json parsed"); Logger::ausf_server().debug("json parsed");
this->ue_authentications_auth_ctx_id5g_aka_confirmation_put( this->ue_authentications_auth_ctx_id5g_aka_confirmation_put(
authCtxId, confirmationData, response); authCtxId, confirmationData, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
Logger::ausf_server().error("**400 error"); Logger::ausf_server().error("**400 error");
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
Logger::ausf_server().error("**500 error"); Logger::ausf_server().error("**500 error");
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
...@@ -147,9 +148,8 @@ void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler( ...@@ -147,9 +148,8 @@ void DefaultApi::ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
} }
void DefaultApi::ue_authentications_deregister_post_handler( void DefaultApi::ue_authentications_deregister_post_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// Getting the body param // Getting the body param
DeregistrationInfo deregistrationInfo; DeregistrationInfo deregistrationInfo;
...@@ -157,14 +157,14 @@ void DefaultApi::ue_authentications_deregister_post_handler( ...@@ -157,14 +157,14 @@ void DefaultApi::ue_authentications_deregister_post_handler(
try { try {
nlohmann::json::parse(request.body()).get_to(deregistrationInfo); nlohmann::json::parse(request.body()).get_to(deregistrationInfo);
this->ue_authentications_deregister_post(deregistrationInfo, response); this->ue_authentications_deregister_post(deregistrationInfo, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return; return;
...@@ -172,9 +172,9 @@ void DefaultApi::ue_authentications_deregister_post_handler( ...@@ -172,9 +172,9 @@ void DefaultApi::ue_authentications_deregister_post_handler(
} }
void DefaultApi::ue_authentications_post_handler( void DefaultApi::ue_authentications_post_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) { Pistache::Http::ResponseWriter response) {
// cout << "------------ue authentications post handler---------" << endl; // cout << "------------ue authentications post handler---------" << endl;
Logger::ausf_server().info("--Received ue-authentications post Request"); Logger::ausf_server().info("--Received ue-authentications post Request");
// Getting the body param // Getting the body param
...@@ -185,15 +185,15 @@ void DefaultApi::ue_authentications_post_handler( ...@@ -185,15 +185,15 @@ void DefaultApi::ue_authentications_post_handler(
nlohmann::json::parse(request.body()).get_to(authenticationInfo); nlohmann::json::parse(request.body()).get_to(authenticationInfo);
Logger::ausf_server().debug("json parsed"); Logger::ausf_server().debug("json parsed");
this->ue_authentications_post(authenticationInfo, response); this->ue_authentications_post(authenticationInfo, response);
} catch (nlohmann::detail::exception &e) { } catch (nlohmann::detail::exception& e) {
// send a 400 error // send a 400 error
Logger::ausf_server().error("**400 error"); Logger::ausf_server().error("**400 error");
response.send(Pistache::Http::Code::Bad_Request, e.what()); response.send(Pistache::Http::Code::Bad_Request, e.what());
return; return;
} catch (Pistache::Http::HttpError &e) { } catch (Pistache::Http::HttpError& e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what()); response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return; return;
} catch (std::exception &e) { } catch (std::exception& e) {
// send a 500 error // send a 500 error
Logger::ausf_server().error("**500 error"); Logger::ausf_server().error("**500 error");
response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
...@@ -202,10 +202,10 @@ void DefaultApi::ue_authentications_post_handler( ...@@ -202,10 +202,10 @@ void DefaultApi::ue_authentications_post_handler(
} }
void DefaultApi::default_api_default_handler( void DefaultApi::default_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) { const Pistache::Rest::Request&, Pistache::Http::ResponseWriter response) {
Logger::ausf_server().info("--in default api handler--"); Logger::ausf_server().info("--in default api handler--");
response.send(Pistache::Http::Code::Not_Found, response.send(
Pistache::Http::Code::Not_Found,
"The requested method does not exist-default"); "The requested method does not exist-default");
} }
......
...@@ -43,29 +43,33 @@ namespace api { ...@@ -43,29 +43,33 @@ namespace api {
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class DefaultApi { class DefaultApi {
public: public:
DefaultApi(std::shared_ptr<Pistache::Rest::Router>); DefaultApi(std::shared_ptr<Pistache::Rest::Router>);
virtual ~DefaultApi() {} virtual ~DefaultApi() {}
void init(); void init();
const std::string base = "/nausf-auth/v1"; const std::string base = "/nausf-auth/v1";
private: private:
void setupRoutes(); void setupRoutes();
void eap_auth_method_handler(const Pistache::Rest::Request &request, void eap_auth_method_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void rg_authentications_post_handler(const Pistache::Rest::Request &request, void rg_authentications_post_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler( void ue_authentications_auth_ctx_id5g_aka_confirmation_put_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void ue_authentications_deregister_post_handler( void ue_authentications_deregister_post_handler(
const Pistache::Rest::Request &request, const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void ue_authentications_post_handler(const Pistache::Rest::Request &request, void ue_authentications_post_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
void default_api_default_handler(const Pistache::Rest::Request &request, void default_api_default_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response); Pistache::Http::ResponseWriter response);
std::shared_ptr<Pistache::Rest::Router> router; std::shared_ptr<Pistache::Rest::Router> router;
...@@ -78,9 +82,9 @@ private: ...@@ -78,9 +82,9 @@ private:
/// </remarks> /// </remarks>
/// <param name="authCtxId"></param> /// <param name="authCtxId"></param>
/// <param name="eapSession"> (optional)</param> /// <param name="eapSession"> (optional)</param>
virtual void eap_auth_method(const std::string &authCtxId, virtual void eap_auth_method(
const EapSession &eapSession, const std::string& authCtxId, const EapSession& eapSession,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// ///
...@@ -89,9 +93,9 @@ private: ...@@ -89,9 +93,9 @@ private:
/// ///
/// </remarks> /// </remarks>
/// <param name="rgAuthenticationInfo"></param> /// <param name="rgAuthenticationInfo"></param>
virtual void virtual void rg_authentications_post(
rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, const RgAuthenticationInfo& rgAuthenticationInfo,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// ///
...@@ -102,8 +106,8 @@ private: ...@@ -102,8 +106,8 @@ private:
/// <param name="authCtxId"></param> /// <param name="authCtxId"></param>
/// <param name="confirmationData"> (optional)</param> /// <param name="confirmationData"> (optional)</param>
virtual void ue_authentications_auth_ctx_id5g_aka_confirmation_put( virtual void ue_authentications_auth_ctx_id5g_aka_confirmation_put(
const std::string &authCtxId, const ConfirmationData &confirmationData, const std::string& authCtxId, const ConfirmationData& confirmationData,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// ///
...@@ -113,8 +117,8 @@ private: ...@@ -113,8 +117,8 @@ private:
/// </remarks> /// </remarks>
/// <param name="deregistrationInfo"></param> /// <param name="deregistrationInfo"></param>
virtual void ue_authentications_deregister_post( virtual void ue_authentications_deregister_post(
const DeregistrationInfo &deregistrationInfo, const DeregistrationInfo& deregistrationInfo,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
/// <summary> /// <summary>
/// ///
...@@ -123,9 +127,9 @@ private: ...@@ -123,9 +127,9 @@ private:
/// ///
/// </remarks> /// </remarks>
/// <param name="authenticationInfo"></param> /// <param name="authenticationInfo"></param>
virtual void virtual void ue_authentications_post(
ue_authentications_post(const AuthenticationInfo &authenticationInfo, const AuthenticationInfo& authenticationInfo,
Pistache::Http::ResponseWriter &response) = 0; Pistache::Http::ResponseWriter& response) = 0;
}; };
} // namespace api } // namespace api
......
...@@ -71,7 +71,7 @@ void setUpUnixSignals(std::vector<int> quitSignals) { ...@@ -71,7 +71,7 @@ void setUpUnixSignals(std::vector<int> quitSignals) {
#endif #endif
using namespace org::openapitools::server::api; using namespace org::openapitools::server::api;
//using namespace oai::ausf::api; // using namespace oai::ausf::api;
using namespace oai::ausf::app; using namespace oai::ausf::app;
void AUSFApiServer::init(size_t thr) { void AUSFApiServer::init(size_t thr) {
...@@ -82,7 +82,6 @@ void AUSFApiServer::init(size_t thr) { ...@@ -82,7 +82,6 @@ void AUSFApiServer::init(size_t thr) {
m_authenticationResultDeletionApiImpl->init(); m_authenticationResultDeletionApiImpl->init();
m_defaultApiImpl->init(); m_defaultApiImpl->init();
} }
void AUSFApiServer::start() { void AUSFApiServer::start() {
Logger::ausf_server().info("HTTP1 server started"); Logger::ausf_server().info("HTTP1 server started");
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#include "ausf_app.hpp" #include "ausf_app.hpp"
using namespace org::openapitools::server::api; using namespace org::openapitools::server::api;
//using namespace oai::ausf::api; // using namespace oai::ausf::api;
using namespace oai::ausf::app; using namespace oai::ausf::app;
class AUSFApiServer { class AUSFApiServer {
public: public:
...@@ -58,12 +58,10 @@ class AUSFApiServer { ...@@ -58,12 +58,10 @@ class AUSFApiServer {
m_address = address.host() + ":" + (address.port()).toString(); m_address = address.host() + ":" + (address.port()).toString();
m_defaultApiImpl = m_defaultApiImpl =
std::make_shared<DefaultApiImpl>( std::make_shared<DefaultApiImpl>(m_router, ausf_app_inst, m_address);
m_router, ausf_app_inst, m_address);
m_authenticationResultDeletionApiImpl = m_authenticationResultDeletionApiImpl =
std::make_shared<AuthenticationResultDeletionApiImpl>( std::make_shared<AuthenticationResultDeletionApiImpl>(
m_router, ausf_app_inst, m_address); m_router, ausf_app_inst, m_address);
} }
void init(size_t thr = 1); void init(size_t thr = 1);
void start(); void start();
...@@ -72,8 +70,7 @@ class AUSFApiServer { ...@@ -72,8 +70,7 @@ class AUSFApiServer {
private: private:
std::shared_ptr<Pistache::Http::Endpoint> m_httpEndpoint; std::shared_ptr<Pistache::Http::Endpoint> m_httpEndpoint;
std::shared_ptr<Pistache::Rest::Router> m_router; std::shared_ptr<Pistache::Rest::Router> m_router;
std::shared_ptr<DefaultApiImpl> std::shared_ptr<DefaultApiImpl> m_defaultApiImpl;
m_defaultApiImpl;
std::shared_ptr<AuthenticationResultDeletionApiImpl> std::shared_ptr<AuthenticationResultDeletionApiImpl>
m_authenticationResultDeletionApiImpl; m_authenticationResultDeletionApiImpl;
std::string m_address; std::string m_address;
......
...@@ -23,14 +23,16 @@ using namespace org::openapitools::server::model; ...@@ -23,14 +23,16 @@ using namespace org::openapitools::server::model;
AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl( AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl(
std::shared_ptr<Pistache::Rest::Router> rtr, ausf_app* ausf_app_inst, std::shared_ptr<Pistache::Rest::Router> rtr, ausf_app* ausf_app_inst,
std::string address) std::string address)
: AuthenticationResultDeletionApi(rtr), m_ausf_app(ausf_app_inst), m_address(address) {} : AuthenticationResultDeletionApi(rtr),
m_ausf_app(ausf_app_inst),
m_address(address) {}
void AuthenticationResultDeletionApiImpl::delete5g_aka_authentication_result( void AuthenticationResultDeletionApiImpl::delete5g_aka_authentication_result(
const std::string &authCtxId, Pistache::Http::ResponseWriter &response) { const std::string& authCtxId, Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); response.send(Pistache::Http::Code::Ok, "Do some magic\n");
} }
void AuthenticationResultDeletionApiImpl::delete_eap_authentication_result( void AuthenticationResultDeletionApiImpl::delete_eap_authentication_result(
const std::string &authCtxId, Pistache::Http::ResponseWriter &response) { const std::string& authCtxId, Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); response.send(Pistache::Http::Code::Ok, "Do some magic\n");
} }
......
...@@ -33,30 +33,28 @@ ...@@ -33,30 +33,28 @@
#include "ausf_app.hpp" #include "ausf_app.hpp"
#include <string> #include <string>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
namespace server { namespace server {
namespace api { namespace api {
using namespace oai::ausf::app; using namespace oai::ausf::app;
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class AuthenticationResultDeletionApiImpl class AuthenticationResultDeletionApiImpl
: public org::openapitools::server::api::AuthenticationResultDeletionApi { : public org::openapitools::server::api::AuthenticationResultDeletionApi {
public: public:
AuthenticationResultDeletionApiImpl(std::shared_ptr<Pistache::Rest::Router>, ausf_app* ausf_app_inst, AuthenticationResultDeletionApiImpl(
std::shared_ptr<Pistache::Rest::Router>, ausf_app* ausf_app_inst,
std::string address); std::string address);
~AuthenticationResultDeletionApiImpl() {} ~AuthenticationResultDeletionApiImpl() {}
void void delete5g_aka_authentication_result(
delete5g_aka_authentication_result(const std::string &authCtxId, const std::string& authCtxId, Pistache::Http::ResponseWriter& response);
Pistache::Http::ResponseWriter &response); void delete_eap_authentication_result(
void const std::string& authCtxId, Pistache::Http::ResponseWriter& response);
delete_eap_authentication_result(const std::string &authCtxId,
Pistache::Http::ResponseWriter &response); private:
private:
ausf_app* m_ausf_app; ausf_app* m_ausf_app;
std::string m_address; std::string m_address;
}; };
......
This diff is collapsed.
...@@ -49,25 +49,29 @@ using namespace oai::ausf::app; ...@@ -49,25 +49,29 @@ using namespace oai::ausf::app;
using namespace org::openapitools::server::model; using namespace org::openapitools::server::model;
class DefaultApiImpl : public org::openapitools::server::api::DefaultApi { class DefaultApiImpl : public org::openapitools::server::api::DefaultApi {
public: public:
DefaultApiImpl(std::shared_ptr<Pistache::Rest::Router>, ausf_app* ausf_app_inst, DefaultApiImpl(
std::shared_ptr<Pistache::Rest::Router>, ausf_app* ausf_app_inst,
std::string address); std::string address);
~DefaultApiImpl() {} ~DefaultApiImpl() {}
void eap_auth_method(const std::string &authCtxId, void eap_auth_method(
const EapSession &eapSession, const std::string& authCtxId, const EapSession& eapSession,
Pistache::Http::ResponseWriter &response); Pistache::Http::ResponseWriter& response);
void rg_authentications_post(const RgAuthenticationInfo &rgAuthenticationInfo, void rg_authentications_post(
Pistache::Http::ResponseWriter &response); const RgAuthenticationInfo& rgAuthenticationInfo,
Pistache::Http::ResponseWriter& response);
void ue_authentications_auth_ctx_id5g_aka_confirmation_put( void ue_authentications_auth_ctx_id5g_aka_confirmation_put(
const std::string &authCtxId, const ConfirmationData &confirmationData, const std::string& authCtxId, const ConfirmationData& confirmationData,
Pistache::Http::ResponseWriter &response); Pistache::Http::ResponseWriter& response);
void ue_authentications_deregister_post( void ue_authentications_deregister_post(
const DeregistrationInfo &deregistrationInfo, const DeregistrationInfo& deregistrationInfo,
Pistache::Http::ResponseWriter &response); Pistache::Http::ResponseWriter& response);
void ue_authentications_post(const AuthenticationInfo &authenticationInfo, void ue_authentications_post(
Pistache::Http::ResponseWriter &response); const AuthenticationInfo& authenticationInfo,
private: Pistache::Http::ResponseWriter& response);
private:
ausf_app* m_ausf_app; ausf_app* m_ausf_app;
std::string m_address; std::string m_address;
}; };
......
...@@ -26,9 +26,11 @@ void AuthResult::validate() { ...@@ -26,9 +26,11 @@ void AuthResult::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const AuthResult &o) { j = nlohmann::json(); } void to_json(nlohmann::json& j, const AuthResult& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json &j, AuthResult &o) {} void from_json(const nlohmann::json& j, AuthResult& o) {}
} // namespace model } // namespace model
} // namespace server } // namespace server
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* AuthResult.h * AuthResult.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef AuthResult_H_ #ifndef AuthResult_H_
#define AuthResult_H_ #define AuthResult_H_
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
namespace org { namespace org {
...@@ -29,9 +29,8 @@ namespace model { ...@@ -29,9 +29,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class AuthResult class AuthResult {
{ public:
public:
AuthResult(); AuthResult();
virtual ~AuthResult(); virtual ~AuthResult();
...@@ -40,15 +39,15 @@ public: ...@@ -40,15 +39,15 @@ public:
///////////////////////////////////////////// /////////////////////////////////////////////
/// AuthResult members /// AuthResult members
friend void to_json(nlohmann::json& j, const AuthResult& o); friend void to_json(nlohmann::json& j, const AuthResult& o);
friend void from_json(const nlohmann::json& j, AuthResult& o); friend void from_json(const nlohmann::json& j, AuthResult& o);
protected:
protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* AuthResult_H_ */ #endif /* AuthResult_H_ */
...@@ -26,9 +26,11 @@ void AuthType::validate() { ...@@ -26,9 +26,11 @@ void AuthType::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const AuthType &o) { j = nlohmann::json(); } void to_json(nlohmann::json& j, const AuthType& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json &j, AuthType &o) {} void from_json(const nlohmann::json& j, AuthType& o) {}
} // namespace model } // namespace model
} // namespace server } // namespace server
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* AuthType.h * AuthType.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef AuthType_H_ #ifndef AuthType_H_
#define AuthType_H_ #define AuthType_H_
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
namespace org { namespace org {
...@@ -29,9 +29,8 @@ namespace model { ...@@ -29,9 +29,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class AuthType class AuthType {
{ public:
public:
AuthType(); AuthType();
virtual ~AuthType(); virtual ~AuthType();
...@@ -40,15 +39,15 @@ public: ...@@ -40,15 +39,15 @@ public:
///////////////////////////////////////////// /////////////////////////////////////////////
/// AuthType members /// AuthType members
friend void to_json(nlohmann::json& j, const AuthType& o); friend void to_json(nlohmann::json& j, const AuthType& o);
friend void from_json(const nlohmann::json& j, AuthType& o); friend void from_json(const nlohmann::json& j, AuthType& o);
protected:
protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* AuthType_H_ */ #endif /* AuthType_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "AuthenticationInfo.h" #include "AuthenticationInfo.h"
...@@ -18,8 +18,7 @@ namespace openapitools { ...@@ -18,8 +18,7 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
AuthenticationInfo::AuthenticationInfo() AuthenticationInfo::AuthenticationInfo() {
{
m_SupiOrSuci = ""; m_SupiOrSuci = "";
m_ServingNetworkName = ""; m_ServingNetworkName = "";
m_ResynchronizationInfoIsSet = false; m_ResynchronizationInfoIsSet = false;
...@@ -33,218 +32,168 @@ AuthenticationInfo::AuthenticationInfo() ...@@ -33,218 +32,168 @@ AuthenticationInfo::AuthenticationInfo()
m_CellCagInfoIsSet = false; m_CellCagInfoIsSet = false;
m_N5gcInd = false; m_N5gcInd = false;
m_N5gcIndIsSet = false; m_N5gcIndIsSet = false;
} }
AuthenticationInfo::~AuthenticationInfo() AuthenticationInfo::~AuthenticationInfo() {}
{
}
void AuthenticationInfo::validate() void AuthenticationInfo::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const AuthenticationInfo& o) void to_json(nlohmann::json& j, const AuthenticationInfo& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["supiOrSuci"] = o.m_SupiOrSuci; j["supiOrSuci"] = o.m_SupiOrSuci;
j["servingNetworkName"] = o.m_ServingNetworkName; j["servingNetworkName"] = o.m_ServingNetworkName;
if(o.resynchronizationInfoIsSet()) if (o.resynchronizationInfoIsSet())
j["resynchronizationInfo"] = o.m_ResynchronizationInfo; j["resynchronizationInfo"] = o.m_ResynchronizationInfo;
if(o.peiIsSet()) if (o.peiIsSet()) j["pei"] = o.m_Pei;
j["pei"] = o.m_Pei; if (o.traceDataIsSet()) j["traceData"] = o.m_TraceData;
if(o.traceDataIsSet()) if (o.udmGroupIdIsSet()) j["udmGroupId"] = o.m_UdmGroupId;
j["traceData"] = o.m_TraceData; if (o.routingIndicatorIsSet()) j["routingIndicator"] = o.m_RoutingIndicator;
if(o.udmGroupIdIsSet()) if (o.cellCagInfoIsSet() || !o.m_CellCagInfo.empty())
j["udmGroupId"] = o.m_UdmGroupId;
if(o.routingIndicatorIsSet())
j["routingIndicator"] = o.m_RoutingIndicator;
if(o.cellCagInfoIsSet() || !o.m_CellCagInfo.empty())
j["cellCagInfo"] = o.m_CellCagInfo; j["cellCagInfo"] = o.m_CellCagInfo;
if(o.n5gcIndIsSet()) if (o.n5gcIndIsSet()) j["n5gcInd"] = o.m_N5gcInd;
j["n5gcInd"] = o.m_N5gcInd;
} }
void from_json(const nlohmann::json& j, AuthenticationInfo& o) void from_json(const nlohmann::json& j, AuthenticationInfo& o) {
{
j.at("supiOrSuci").get_to(o.m_SupiOrSuci); j.at("supiOrSuci").get_to(o.m_SupiOrSuci);
j.at("servingNetworkName").get_to(o.m_ServingNetworkName); j.at("servingNetworkName").get_to(o.m_ServingNetworkName);
if(j.find("resynchronizationInfo") != j.end()) if (j.find("resynchronizationInfo") != j.end()) {
{
j.at("resynchronizationInfo").get_to(o.m_ResynchronizationInfo); j.at("resynchronizationInfo").get_to(o.m_ResynchronizationInfo);
o.m_ResynchronizationInfoIsSet = true; o.m_ResynchronizationInfoIsSet = true;
} }
if(j.find("pei") != j.end()) if (j.find("pei") != j.end()) {
{
j.at("pei").get_to(o.m_Pei); j.at("pei").get_to(o.m_Pei);
o.m_PeiIsSet = true; o.m_PeiIsSet = true;
} }
if(j.find("traceData") != j.end()) if (j.find("traceData") != j.end()) {
{
j.at("traceData").get_to(o.m_TraceData); j.at("traceData").get_to(o.m_TraceData);
o.m_TraceDataIsSet = true; o.m_TraceDataIsSet = true;
} }
if(j.find("udmGroupId") != j.end()) if (j.find("udmGroupId") != j.end()) {
{
j.at("udmGroupId").get_to(o.m_UdmGroupId); j.at("udmGroupId").get_to(o.m_UdmGroupId);
o.m_UdmGroupIdIsSet = true; o.m_UdmGroupIdIsSet = true;
} }
if(j.find("routingIndicator") != j.end()) if (j.find("routingIndicator") != j.end()) {
{
j.at("routingIndicator").get_to(o.m_RoutingIndicator); j.at("routingIndicator").get_to(o.m_RoutingIndicator);
o.m_RoutingIndicatorIsSet = true; o.m_RoutingIndicatorIsSet = true;
} }
if(j.find("cellCagInfo") != j.end()) if (j.find("cellCagInfo") != j.end()) {
{
j.at("cellCagInfo").get_to(o.m_CellCagInfo); j.at("cellCagInfo").get_to(o.m_CellCagInfo);
o.m_CellCagInfoIsSet = true; o.m_CellCagInfoIsSet = true;
} }
if(j.find("n5gcInd") != j.end()) if (j.find("n5gcInd") != j.end()) {
{
j.at("n5gcInd").get_to(o.m_N5gcInd); j.at("n5gcInd").get_to(o.m_N5gcInd);
o.m_N5gcIndIsSet = true; o.m_N5gcIndIsSet = true;
} }
} }
std::string AuthenticationInfo::getSupiOrSuci() const std::string AuthenticationInfo::getSupiOrSuci() const {
{
return m_SupiOrSuci; return m_SupiOrSuci;
} }
void AuthenticationInfo::setSupiOrSuci(std::string const& value) void AuthenticationInfo::setSupiOrSuci(std::string const& value) {
{
m_SupiOrSuci = value; m_SupiOrSuci = value;
} }
std::string AuthenticationInfo::getServingNetworkName() const std::string AuthenticationInfo::getServingNetworkName() const {
{
return m_ServingNetworkName; return m_ServingNetworkName;
} }
void AuthenticationInfo::setServingNetworkName(std::string const& value) void AuthenticationInfo::setServingNetworkName(std::string const& value) {
{
m_ServingNetworkName = value; m_ServingNetworkName = value;
} }
ResynchronizationInfo AuthenticationInfo::getResynchronizationInfo() const ResynchronizationInfo AuthenticationInfo::getResynchronizationInfo() const {
{
return m_ResynchronizationInfo; return m_ResynchronizationInfo;
} }
void AuthenticationInfo::setResynchronizationInfo(ResynchronizationInfo const& value) void AuthenticationInfo::setResynchronizationInfo(
{ ResynchronizationInfo const& value) {
m_ResynchronizationInfo = value; m_ResynchronizationInfo = value;
m_ResynchronizationInfoIsSet = true; m_ResynchronizationInfoIsSet = true;
} }
bool AuthenticationInfo::resynchronizationInfoIsSet() const bool AuthenticationInfo::resynchronizationInfoIsSet() const {
{
return m_ResynchronizationInfoIsSet; return m_ResynchronizationInfoIsSet;
} }
void AuthenticationInfo::unsetResynchronizationInfo() void AuthenticationInfo::unsetResynchronizationInfo() {
{
m_ResynchronizationInfoIsSet = false; m_ResynchronizationInfoIsSet = false;
} }
std::string AuthenticationInfo::getPei() const std::string AuthenticationInfo::getPei() const {
{
return m_Pei; return m_Pei;
} }
void AuthenticationInfo::setPei(std::string const& value) void AuthenticationInfo::setPei(std::string const& value) {
{
m_Pei = value; m_Pei = value;
m_PeiIsSet = true; m_PeiIsSet = true;
} }
bool AuthenticationInfo::peiIsSet() const bool AuthenticationInfo::peiIsSet() const {
{
return m_PeiIsSet; return m_PeiIsSet;
} }
void AuthenticationInfo::unsetPei() void AuthenticationInfo::unsetPei() {
{
m_PeiIsSet = false; m_PeiIsSet = false;
} }
TraceData AuthenticationInfo::getTraceData() const TraceData AuthenticationInfo::getTraceData() const {
{
return m_TraceData; return m_TraceData;
} }
void AuthenticationInfo::setTraceData(TraceData const& value) void AuthenticationInfo::setTraceData(TraceData const& value) {
{
m_TraceData = value; m_TraceData = value;
m_TraceDataIsSet = true; m_TraceDataIsSet = true;
} }
bool AuthenticationInfo::traceDataIsSet() const bool AuthenticationInfo::traceDataIsSet() const {
{
return m_TraceDataIsSet; return m_TraceDataIsSet;
} }
void AuthenticationInfo::unsetTraceData() void AuthenticationInfo::unsetTraceData() {
{
m_TraceDataIsSet = false; m_TraceDataIsSet = false;
} }
std::string AuthenticationInfo::getUdmGroupId() const std::string AuthenticationInfo::getUdmGroupId() const {
{
return m_UdmGroupId; return m_UdmGroupId;
} }
void AuthenticationInfo::setUdmGroupId(std::string const& value) void AuthenticationInfo::setUdmGroupId(std::string const& value) {
{
m_UdmGroupId = value; m_UdmGroupId = value;
m_UdmGroupIdIsSet = true; m_UdmGroupIdIsSet = true;
} }
bool AuthenticationInfo::udmGroupIdIsSet() const bool AuthenticationInfo::udmGroupIdIsSet() const {
{
return m_UdmGroupIdIsSet; return m_UdmGroupIdIsSet;
} }
void AuthenticationInfo::unsetUdmGroupId() void AuthenticationInfo::unsetUdmGroupId() {
{
m_UdmGroupIdIsSet = false; m_UdmGroupIdIsSet = false;
} }
std::string AuthenticationInfo::getRoutingIndicator() const std::string AuthenticationInfo::getRoutingIndicator() const {
{
return m_RoutingIndicator; return m_RoutingIndicator;
} }
void AuthenticationInfo::setRoutingIndicator(std::string const& value) void AuthenticationInfo::setRoutingIndicator(std::string const& value) {
{
m_RoutingIndicator = value; m_RoutingIndicator = value;
m_RoutingIndicatorIsSet = true; m_RoutingIndicatorIsSet = true;
} }
bool AuthenticationInfo::routingIndicatorIsSet() const bool AuthenticationInfo::routingIndicatorIsSet() const {
{
return m_RoutingIndicatorIsSet; return m_RoutingIndicatorIsSet;
} }
void AuthenticationInfo::unsetRoutingIndicator() void AuthenticationInfo::unsetRoutingIndicator() {
{
m_RoutingIndicatorIsSet = false; m_RoutingIndicatorIsSet = false;
} }
std::vector<std::string>& AuthenticationInfo::getCellCagInfo() std::vector<std::string>& AuthenticationInfo::getCellCagInfo() {
{
return m_CellCagInfo; return m_CellCagInfo;
} }
void AuthenticationInfo::setCellCagInfo(std::vector<std::string> const& value) void AuthenticationInfo::setCellCagInfo(std::vector<std::string> const& value) {
{
m_CellCagInfo = value; m_CellCagInfo = value;
m_CellCagInfoIsSet = true; m_CellCagInfoIsSet = true;
} }
bool AuthenticationInfo::cellCagInfoIsSet() const bool AuthenticationInfo::cellCagInfoIsSet() const {
{
return m_CellCagInfoIsSet; return m_CellCagInfoIsSet;
} }
void AuthenticationInfo::unsetCellCagInfo() void AuthenticationInfo::unsetCellCagInfo() {
{
m_CellCagInfoIsSet = false; m_CellCagInfoIsSet = false;
} }
bool AuthenticationInfo::isN5gcInd() const bool AuthenticationInfo::isN5gcInd() const {
{
return m_N5gcInd; return m_N5gcInd;
} }
void AuthenticationInfo::setN5gcInd(bool const value) void AuthenticationInfo::setN5gcInd(bool const value) {
{
m_N5gcInd = value; m_N5gcInd = value;
m_N5gcIndIsSet = true; m_N5gcIndIsSet = true;
} }
bool AuthenticationInfo::n5gcIndIsSet() const bool AuthenticationInfo::n5gcIndIsSet() const {
{
return m_N5gcIndIsSet; return m_N5gcIndIsSet;
} }
void AuthenticationInfo::unsetN5gcInd() void AuthenticationInfo::unsetN5gcInd() {
{
m_N5gcIndIsSet = false; m_N5gcIndIsSet = false;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
...@@ -34,7 +34,7 @@ namespace model { ...@@ -34,7 +34,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class AuthenticationInfo { class AuthenticationInfo {
public: public:
AuthenticationInfo(); AuthenticationInfo();
virtual ~AuthenticationInfo(); virtual ~AuthenticationInfo();
...@@ -47,52 +47,52 @@ public: ...@@ -47,52 +47,52 @@ public:
/// ///
/// </summary> /// </summary>
std::string getSupiOrSuci() const; std::string getSupiOrSuci() const;
void setSupiOrSuci(std::string const &value); void setSupiOrSuci(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getServingNetworkName() const; std::string getServingNetworkName() const;
void setServingNetworkName(std::string const &value); void setServingNetworkName(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
ResynchronizationInfo getResynchronizationInfo() const; ResynchronizationInfo getResynchronizationInfo() const;
void setResynchronizationInfo(ResynchronizationInfo const &value); void setResynchronizationInfo(ResynchronizationInfo const& value);
bool resynchronizationInfoIsSet() const; bool resynchronizationInfoIsSet() const;
void unsetResynchronizationInfo(); void unsetResynchronizationInfo();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getPei() const; std::string getPei() const;
void setPei(std::string const &value); void setPei(std::string const& value);
bool peiIsSet() const; bool peiIsSet() const;
void unsetPei(); void unsetPei();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
TraceData getTraceData() const; TraceData getTraceData() const;
void setTraceData(TraceData const &value); void setTraceData(TraceData const& value);
bool traceDataIsSet() const; bool traceDataIsSet() const;
void unsetTraceData(); void unsetTraceData();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getUdmGroupId() const; std::string getUdmGroupId() const;
void setUdmGroupId(std::string const &value); void setUdmGroupId(std::string const& value);
bool udmGroupIdIsSet() const; bool udmGroupIdIsSet() const;
void unsetUdmGroupId(); void unsetUdmGroupId();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getRoutingIndicator() const; std::string getRoutingIndicator() const;
void setRoutingIndicator(std::string const &value); void setRoutingIndicator(std::string const& value);
bool routingIndicatorIsSet() const; bool routingIndicatorIsSet() const;
void unsetRoutingIndicator(); void unsetRoutingIndicator();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::vector<std::string> &getCellCagInfo(); std::vector<std::string>& getCellCagInfo();
void setCellCagInfo(std::vector<std::string> const &value); void setCellCagInfo(std::vector<std::string> const& value);
bool cellCagInfoIsSet() const; bool cellCagInfoIsSet() const;
void unsetCellCagInfo(); void unsetCellCagInfo();
/// <summary> /// <summary>
...@@ -103,10 +103,10 @@ public: ...@@ -103,10 +103,10 @@ public:
bool n5gcIndIsSet() const; bool n5gcIndIsSet() const;
void unsetN5gcInd(); void unsetN5gcInd();
friend void to_json(nlohmann::json &j, const AuthenticationInfo &o); friend void to_json(nlohmann::json& j, const AuthenticationInfo& o);
friend void from_json(const nlohmann::json &j, AuthenticationInfo &o); friend void from_json(const nlohmann::json& j, AuthenticationInfo& o);
protected: protected:
std::string m_SupiOrSuci; std::string m_SupiOrSuci;
std::string m_ServingNetworkName; std::string m_ServingNetworkName;
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "Av5gAka.h" #include "Av5gAka.h"
...@@ -18,65 +18,51 @@ namespace openapitools { ...@@ -18,65 +18,51 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
Av5gAka::Av5gAka() Av5gAka::Av5gAka() {
{
m_Rand = ""; m_Rand = "";
m_HxresStar = ""; m_HxresStar = "";
m_Autn = ""; m_Autn = "";
} }
Av5gAka::~Av5gAka() Av5gAka::~Av5gAka() {}
{
}
void Av5gAka::validate() void Av5gAka::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const Av5gAka& o) void to_json(nlohmann::json& j, const Av5gAka& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["rand"] = o.m_Rand; j["rand"] = o.m_Rand;
j["hxresStar"] = o.m_HxresStar; j["hxresStar"] = o.m_HxresStar;
j["autn"] = o.m_Autn; j["autn"] = o.m_Autn;
} }
void from_json(const nlohmann::json& j, Av5gAka& o) void from_json(const nlohmann::json& j, Av5gAka& o) {
{
j.at("rand").get_to(o.m_Rand); j.at("rand").get_to(o.m_Rand);
j.at("hxresStar").get_to(o.m_HxresStar); j.at("hxresStar").get_to(o.m_HxresStar);
j.at("autn").get_to(o.m_Autn); j.at("autn").get_to(o.m_Autn);
} }
std::string Av5gAka::getRand() const std::string Av5gAka::getRand() const {
{
return m_Rand; return m_Rand;
} }
void Av5gAka::setRand(std::string const& value) void Av5gAka::setRand(std::string const& value) {
{
m_Rand = value; m_Rand = value;
} }
std::string Av5gAka::getHxresStar() const std::string Av5gAka::getHxresStar() const {
{
return m_HxresStar; return m_HxresStar;
} }
void Av5gAka::setHxresStar(std::string const& value) void Av5gAka::setHxresStar(std::string const& value) {
{
m_HxresStar = value; m_HxresStar = value;
} }
std::string Av5gAka::getAutn() const std::string Av5gAka::getAutn() const {
{
return m_Autn; return m_Autn;
} }
void Av5gAka::setAutn(std::string const& value) void Av5gAka::setAutn(std::string const& value) {
{
m_Autn = value; m_Autn = value;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* Av5gAka.h * Av5gAka.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef Av5gAka_H_ #ifndef Av5gAka_H_
#define Av5gAka_H_ #define Av5gAka_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -30,9 +30,8 @@ namespace model { ...@@ -30,9 +30,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class Av5gAka class Av5gAka {
{ public:
public:
Av5gAka(); Av5gAka();
virtual ~Av5gAka(); virtual ~Av5gAka();
...@@ -59,18 +58,18 @@ public: ...@@ -59,18 +58,18 @@ public:
friend void to_json(nlohmann::json& j, const Av5gAka& o); friend void to_json(nlohmann::json& j, const Av5gAka& o);
friend void from_json(const nlohmann::json& j, Av5gAka& o); friend void from_json(const nlohmann::json& j, Av5gAka& o);
protected:
protected:
std::string m_Rand; std::string m_Rand;
std::string m_HxresStar; std::string m_HxresStar;
std::string m_Autn; std::string m_Autn;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* Av5gAka_H_ */ #endif /* Av5gAka_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "ConfirmationData.h" #include "ConfirmationData.h"
...@@ -18,43 +18,33 @@ namespace openapitools { ...@@ -18,43 +18,33 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ConfirmationData::ConfirmationData() ConfirmationData::ConfirmationData() {
{
m_ResStar = ""; m_ResStar = "";
} }
ConfirmationData::~ConfirmationData() ConfirmationData::~ConfirmationData() {}
{
}
void ConfirmationData::validate() void ConfirmationData::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const ConfirmationData& o) void to_json(nlohmann::json& j, const ConfirmationData& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["resStar"] = o.m_ResStar; j["resStar"] = o.m_ResStar;
} }
void from_json(const nlohmann::json& j, ConfirmationData& o) void from_json(const nlohmann::json& j, ConfirmationData& o) {
{
j.at("resStar").get_to(o.m_ResStar); j.at("resStar").get_to(o.m_ResStar);
} }
std::string ConfirmationData::getResStar() const std::string ConfirmationData::getResStar() const {
{
return m_ResStar; return m_ResStar;
} }
void ConfirmationData::setResStar(std::string const& value) void ConfirmationData::setResStar(std::string const& value) {
{
m_ResStar = value; m_ResStar = value;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* ConfirmationData.h * ConfirmationData.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef ConfirmationData_H_ #ifndef ConfirmationData_H_
#define ConfirmationData_H_ #define ConfirmationData_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -30,9 +30,8 @@ namespace model { ...@@ -30,9 +30,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class ConfirmationData class ConfirmationData {
{ public:
public:
ConfirmationData(); ConfirmationData();
virtual ~ConfirmationData(); virtual ~ConfirmationData();
...@@ -49,14 +48,14 @@ public: ...@@ -49,14 +48,14 @@ public:
friend void to_json(nlohmann::json& j, const ConfirmationData& o); friend void to_json(nlohmann::json& j, const ConfirmationData& o);
friend void from_json(const nlohmann::json& j, ConfirmationData& o); friend void from_json(const nlohmann::json& j, ConfirmationData& o);
protected:
std::string m_ResStar;
protected:
std::string m_ResStar;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* ConfirmationData_H_ */ #endif /* ConfirmationData_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "ConfirmationDataResponse.h" #include "ConfirmationDataResponse.h"
...@@ -18,44 +18,33 @@ namespace openapitools { ...@@ -18,44 +18,33 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ConfirmationDataResponse::ConfirmationDataResponse() ConfirmationDataResponse::ConfirmationDataResponse() {
{
m_Supi = ""; m_Supi = "";
m_SupiIsSet = false; m_SupiIsSet = false;
m_Kseaf = ""; m_Kseaf = "";
m_KseafIsSet = false; m_KseafIsSet = false;
} }
ConfirmationDataResponse::~ConfirmationDataResponse() ConfirmationDataResponse::~ConfirmationDataResponse() {}
{
}
void ConfirmationDataResponse::validate() void ConfirmationDataResponse::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const ConfirmationDataResponse& o) void to_json(nlohmann::json& j, const ConfirmationDataResponse& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["authResult"] = o.m_AuthResult; j["authResult"] = o.m_AuthResult;
if(o.supiIsSet()) if (o.supiIsSet()) j["supi"] = o.m_Supi;
j["supi"] = o.m_Supi; if (o.kseafIsSet()) j["kseaf"] = o.m_Kseaf;
if(o.kseafIsSet())
j["kseaf"] = o.m_Kseaf;
} }
void from_json(const nlohmann::json& j, ConfirmationDataResponse& o) void from_json(const nlohmann::json& j, ConfirmationDataResponse& o) {
{
j.at("authResult").get_to(o.m_AuthResult); j.at("authResult").get_to(o.m_AuthResult);
if(j.find("supi") != j.end()) if (j.find("supi") != j.end()) {
{
j.at("supi").get_to(o.m_Supi); j.at("supi").get_to(o.m_Supi);
o.m_SupiIsSet = true; o.m_SupiIsSet = true;
} }
if(j.find("kseaf") != j.end()) if (j.find("kseaf") != j.end()) {
{
j.at("kseaf").get_to(o.m_Kseaf); j.at("kseaf").get_to(o.m_Kseaf);
o.m_KseafIsSet = true; o.m_KseafIsSet = true;
} }
...@@ -69,51 +58,40 @@ void from_json(const nlohmann::json& j, ConfirmationDataResponse& o) ...@@ -69,51 +58,40 @@ void from_json(const nlohmann::json& j, ConfirmationDataResponse& o)
// { // {
// m_AuthResult = value; // m_AuthResult = value;
// } // }
bool ConfirmationDataResponse::getAuthResult() const bool ConfirmationDataResponse::getAuthResult() const {
{
return m_AuthResult; return m_AuthResult;
} }
void ConfirmationDataResponse::setAuthResult(bool const& value) void ConfirmationDataResponse::setAuthResult(bool const& value) {
{
m_AuthResult = value; m_AuthResult = value;
} }
std::string ConfirmationDataResponse::getSupi() const std::string ConfirmationDataResponse::getSupi() const {
{
return m_Supi; return m_Supi;
} }
void ConfirmationDataResponse::setSupi(std::string const& value) void ConfirmationDataResponse::setSupi(std::string const& value) {
{
m_Supi = value; m_Supi = value;
m_SupiIsSet = true; m_SupiIsSet = true;
} }
bool ConfirmationDataResponse::supiIsSet() const bool ConfirmationDataResponse::supiIsSet() const {
{
return m_SupiIsSet; return m_SupiIsSet;
} }
void ConfirmationDataResponse::unsetSupi() void ConfirmationDataResponse::unsetSupi() {
{
m_SupiIsSet = false; m_SupiIsSet = false;
} }
std::string ConfirmationDataResponse::getKseaf() const std::string ConfirmationDataResponse::getKseaf() const {
{
return m_Kseaf; return m_Kseaf;
} }
void ConfirmationDataResponse::setKseaf(std::string const& value) void ConfirmationDataResponse::setKseaf(std::string const& value) {
{
m_Kseaf = value; m_Kseaf = value;
m_KseafIsSet = true; m_KseafIsSet = true;
} }
bool ConfirmationDataResponse::kseafIsSet() const bool ConfirmationDataResponse::kseafIsSet() const {
{
return m_KseafIsSet; return m_KseafIsSet;
} }
void ConfirmationDataResponse::unsetKseaf() void ConfirmationDataResponse::unsetKseaf() {
{
m_KseafIsSet = false; m_KseafIsSet = false;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
...@@ -32,7 +32,7 @@ namespace model { ...@@ -32,7 +32,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class ConfirmationDataResponse { class ConfirmationDataResponse {
public: public:
ConfirmationDataResponse(); ConfirmationDataResponse();
virtual ~ConfirmationDataResponse(); virtual ~ConfirmationDataResponse();
...@@ -45,7 +45,7 @@ public: ...@@ -45,7 +45,7 @@ public:
/// ///
/// </summary> /// </summary>
bool getAuthResult() const; bool getAuthResult() const;
void setAuthResult(bool const &value); void setAuthResult(bool const& value);
// AuthResult getAuthResult() const; // AuthResult getAuthResult() const;
// void setAuthResult(AuthResult const &value); // void setAuthResult(AuthResult const &value);
...@@ -54,21 +54,21 @@ public: ...@@ -54,21 +54,21 @@ public:
/// ///
/// </summary> /// </summary>
std::string getSupi() const; std::string getSupi() const;
void setSupi(std::string const &value); void setSupi(std::string const& value);
bool supiIsSet() const; bool supiIsSet() const;
void unsetSupi(); void unsetSupi();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getKseaf() const; std::string getKseaf() const;
void setKseaf(std::string const &value); void setKseaf(std::string const& value);
bool kseafIsSet() const; bool kseafIsSet() const;
void unsetKseaf(); void unsetKseaf();
friend void to_json(nlohmann::json &j, const ConfirmationDataResponse &o); friend void to_json(nlohmann::json& j, const ConfirmationDataResponse& o);
friend void from_json(const nlohmann::json &j, ConfirmationDataResponse &o); friend void from_json(const nlohmann::json& j, ConfirmationDataResponse& o);
protected: protected:
bool m_AuthResult; bool m_AuthResult;
// AuthResult m_AuthResult; //AuthResult not defined // AuthResult m_AuthResult; //AuthResult not defined
......
...@@ -18,7 +18,9 @@ namespace openapitools { ...@@ -18,7 +18,9 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
DeregistrationInfo::DeregistrationInfo() { m_Supi = ""; } DeregistrationInfo::DeregistrationInfo() {
m_Supi = "";
}
DeregistrationInfo::~DeregistrationInfo() {} DeregistrationInfo::~DeregistrationInfo() {}
...@@ -26,17 +28,21 @@ void DeregistrationInfo::validate() { ...@@ -26,17 +28,21 @@ void DeregistrationInfo::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const DeregistrationInfo &o) { void to_json(nlohmann::json& j, const DeregistrationInfo& o) {
j = nlohmann::json(); j = nlohmann::json();
j["supi"] = o.m_Supi; j["supi"] = o.m_Supi;
} }
void from_json(const nlohmann::json &j, DeregistrationInfo &o) { void from_json(const nlohmann::json& j, DeregistrationInfo& o) {
j.at("supi").get_to(o.m_Supi); j.at("supi").get_to(o.m_Supi);
} }
std::string DeregistrationInfo::getSupi() const { return m_Supi; } std::string DeregistrationInfo::getSupi() const {
void DeregistrationInfo::setSupi(std::string const &value) { m_Supi = value; } return m_Supi;
}
void DeregistrationInfo::setSupi(std::string const& value) {
m_Supi = value;
}
} // namespace model } // namespace model
} // namespace server } // namespace server
......
...@@ -31,7 +31,7 @@ namespace model { ...@@ -31,7 +31,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class DeregistrationInfo { class DeregistrationInfo {
public: public:
DeregistrationInfo(); DeregistrationInfo();
virtual ~DeregistrationInfo(); virtual ~DeregistrationInfo();
...@@ -44,12 +44,12 @@ public: ...@@ -44,12 +44,12 @@ public:
/// ///
/// </summary> /// </summary>
std::string getSupi() const; std::string getSupi() const;
void setSupi(std::string const &value); void setSupi(std::string const& value);
friend void to_json(nlohmann::json &j, const DeregistrationInfo &o); friend void to_json(nlohmann::json& j, const DeregistrationInfo& o);
friend void from_json(const nlohmann::json &j, DeregistrationInfo &o); friend void from_json(const nlohmann::json& j, DeregistrationInfo& o);
protected: protected:
std::string m_Supi; std::string m_Supi;
}; };
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "EapSession.h" #include "EapSession.h"
...@@ -18,8 +18,7 @@ namespace openapitools { ...@@ -18,8 +18,7 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
EapSession::EapSession() EapSession::EapSession() {
{
m_EapPayload = ""; m_EapPayload = "";
m_KSeaf = ""; m_KSeaf = "";
m_KSeafIsSet = false; m_KSeafIsSet = false;
...@@ -27,136 +26,104 @@ EapSession::EapSession() ...@@ -27,136 +26,104 @@ EapSession::EapSession()
m_AuthResultIsSet = false; m_AuthResultIsSet = false;
m_Supi = ""; m_Supi = "";
m_SupiIsSet = false; m_SupiIsSet = false;
} }
EapSession::~EapSession() EapSession::~EapSession() {}
{
}
void EapSession::validate() void EapSession::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const EapSession& o) void to_json(nlohmann::json& j, const EapSession& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["eapPayload"] = o.m_EapPayload; j["eapPayload"] = o.m_EapPayload;
if(o.kSeafIsSet()) if (o.kSeafIsSet()) j["kSeaf"] = o.m_KSeaf;
j["kSeaf"] = o.m_KSeaf; if (o.linksIsSet() || !o.m__links.empty()) j["_links"] = o.m__links;
if(o.linksIsSet() || !o.m__links.empty()) if (o.authResultIsSet()) j["authResult"] = o.m_AuthResult;
j["_links"] = o.m__links; if (o.supiIsSet()) j["supi"] = o.m_Supi;
if(o.authResultIsSet())
j["authResult"] = o.m_AuthResult;
if(o.supiIsSet())
j["supi"] = o.m_Supi;
} }
void from_json(const nlohmann::json& j, EapSession& o) void from_json(const nlohmann::json& j, EapSession& o) {
{
j.at("eapPayload").get_to(o.m_EapPayload); j.at("eapPayload").get_to(o.m_EapPayload);
if(j.find("kSeaf") != j.end()) if (j.find("kSeaf") != j.end()) {
{
j.at("kSeaf").get_to(o.m_KSeaf); j.at("kSeaf").get_to(o.m_KSeaf);
o.m_KSeafIsSet = true; o.m_KSeafIsSet = true;
} }
if(j.find("_links") != j.end()) if (j.find("_links") != j.end()) {
{
j.at("_links").get_to(o.m__links); j.at("_links").get_to(o.m__links);
o.m__linksIsSet = true; o.m__linksIsSet = true;
} }
if(j.find("authResult") != j.end()) if (j.find("authResult") != j.end()) {
{
j.at("authResult").get_to(o.m_AuthResult); j.at("authResult").get_to(o.m_AuthResult);
o.m_AuthResultIsSet = true; o.m_AuthResultIsSet = true;
} }
if(j.find("supi") != j.end()) if (j.find("supi") != j.end()) {
{
j.at("supi").get_to(o.m_Supi); j.at("supi").get_to(o.m_Supi);
o.m_SupiIsSet = true; o.m_SupiIsSet = true;
} }
} }
std::string EapSession::getEapPayload() const std::string EapSession::getEapPayload() const {
{
return m_EapPayload; return m_EapPayload;
} }
void EapSession::setEapPayload(std::string const& value) void EapSession::setEapPayload(std::string const& value) {
{
m_EapPayload = value; m_EapPayload = value;
} }
std::string EapSession::getKSeaf() const std::string EapSession::getKSeaf() const {
{
return m_KSeaf; return m_KSeaf;
} }
void EapSession::setKSeaf(std::string const& value) void EapSession::setKSeaf(std::string const& value) {
{
m_KSeaf = value; m_KSeaf = value;
m_KSeafIsSet = true; m_KSeafIsSet = true;
} }
bool EapSession::kSeafIsSet() const bool EapSession::kSeafIsSet() const {
{
return m_KSeafIsSet; return m_KSeafIsSet;
} }
void EapSession::unsetKSeaf() void EapSession::unsetKSeaf() {
{
m_KSeafIsSet = false; m_KSeafIsSet = false;
} }
std::map<std::string, LinksValueSchema>& EapSession::getLinks() std::map<std::string, LinksValueSchema>& EapSession::getLinks() {
{
return m__links; return m__links;
} }
void EapSession::setLinks(std::map<std::string, LinksValueSchema> const& value) void EapSession::setLinks(
{ std::map<std::string, LinksValueSchema> const& value) {
m__links = value; m__links = value;
m__linksIsSet = true; m__linksIsSet = true;
} }
bool EapSession::linksIsSet() const bool EapSession::linksIsSet() const {
{
return m__linksIsSet; return m__linksIsSet;
} }
void EapSession::unset_links() void EapSession::unset_links() {
{
m__linksIsSet = false; m__linksIsSet = false;
} }
AuthResult EapSession::getAuthResult() const AuthResult EapSession::getAuthResult() const {
{
return m_AuthResult; return m_AuthResult;
} }
void EapSession::setAuthResult(AuthResult const& value) void EapSession::setAuthResult(AuthResult const& value) {
{
m_AuthResult = value; m_AuthResult = value;
m_AuthResultIsSet = true; m_AuthResultIsSet = true;
} }
bool EapSession::authResultIsSet() const bool EapSession::authResultIsSet() const {
{
return m_AuthResultIsSet; return m_AuthResultIsSet;
} }
void EapSession::unsetAuthResult() void EapSession::unsetAuthResult() {
{
m_AuthResultIsSet = false; m_AuthResultIsSet = false;
} }
std::string EapSession::getSupi() const std::string EapSession::getSupi() const {
{
return m_Supi; return m_Supi;
} }
void EapSession::setSupi(std::string const& value) void EapSession::setSupi(std::string const& value) {
{
m_Supi = value; m_Supi = value;
m_SupiIsSet = true; m_SupiIsSet = true;
} }
bool EapSession::supiIsSet() const bool EapSession::supiIsSet() const {
{
return m_SupiIsSet; return m_SupiIsSet;
} }
void EapSession::unsetSupi() void EapSession::unsetSupi() {
{
m_SupiIsSet = false; m_SupiIsSet = false;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
...@@ -35,7 +35,7 @@ namespace model { ...@@ -35,7 +35,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class EapSession { class EapSession {
public: public:
EapSession(); EapSession();
virtual ~EapSession(); virtual ~EapSession();
...@@ -48,40 +48,40 @@ public: ...@@ -48,40 +48,40 @@ public:
/// contains an EAP packet /// contains an EAP packet
/// </summary> /// </summary>
std::string getEapPayload() const; std::string getEapPayload() const;
void setEapPayload(std::string const &value); void setEapPayload(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getKSeaf() const; std::string getKSeaf() const;
void setKSeaf(std::string const &value); void setKSeaf(std::string const& value);
bool kSeafIsSet() const; bool kSeafIsSet() const;
void unsetKSeaf(); void unsetKSeaf();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::map<std::string, LinksValueSchema> &getLinks(); std::map<std::string, LinksValueSchema>& getLinks();
void setLinks(std::map<std::string, LinksValueSchema> const &value); void setLinks(std::map<std::string, LinksValueSchema> const& value);
bool linksIsSet() const; bool linksIsSet() const;
void unset_links(); void unset_links();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
AuthResult getAuthResult() const; AuthResult getAuthResult() const;
void setAuthResult(AuthResult const &value); void setAuthResult(AuthResult const& value);
bool authResultIsSet() const; bool authResultIsSet() const;
void unsetAuthResult(); void unsetAuthResult();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getSupi() const; std::string getSupi() const;
void setSupi(std::string const &value); void setSupi(std::string const& value);
bool supiIsSet() const; bool supiIsSet() const;
void unsetSupi(); void unsetSupi();
friend void to_json(nlohmann::json &j, const EapSession &o); friend void to_json(nlohmann::json& j, const EapSession& o);
friend void from_json(const nlohmann::json &j, EapSession &o); friend void from_json(const nlohmann::json& j, EapSession& o);
protected: protected:
std::string m_EapPayload; std::string m_EapPayload;
std::string m_KSeaf; std::string m_KSeaf;
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "Helpers.h" #include "Helpers.h"
namespace org { namespace org {
...@@ -16,83 +17,79 @@ namespace openapitools { ...@@ -16,83 +17,79 @@ namespace openapitools {
namespace server { namespace server {
namespace helpers { namespace helpers {
std::string toStringValue(const std::string& value) {
std::string toStringValue(const std::string &value){
return std::string(value); return std::string(value);
} }
std::string toStringValue(const int32_t &value){ std::string toStringValue(const int32_t& value) {
return std::to_string(value); return std::to_string(value);
} }
std::string toStringValue(const int64_t &value){ std::string toStringValue(const int64_t& value) {
return std::to_string(value); return std::to_string(value);
} }
std::string toStringValue(const bool &value){ std::string toStringValue(const bool& value) {
return value?std::string("true"):std::string("false"); return value ? std::string("true") : std::string("false");
} }
std::string toStringValue(const float &value){ std::string toStringValue(const float& value) {
return std::to_string(value); return std::to_string(value);
} }
std::string toStringValue(const double &value){ std::string toStringValue(const double& value) {
return std::to_string(value); return std::to_string(value);
} }
bool fromStringValue(const std::string &inStr, std::string &value){ bool fromStringValue(const std::string& inStr, std::string& value) {
value = std::string(inStr); value = std::string(inStr);
return true; return true;
} }
bool fromStringValue(const std::string &inStr, int32_t &value){ bool fromStringValue(const std::string& inStr, int32_t& value) {
try { try {
value = std::stoi( inStr ); value = std::stoi(inStr);
} } catch (const std::invalid_argument&) {
catch (const std::invalid_argument&) {
return false; return false;
} }
return true; return true;
} }
bool fromStringValue(const std::string &inStr, int64_t &value){ bool fromStringValue(const std::string& inStr, int64_t& value) {
try { try {
value = std::stol( inStr ); value = std::stol(inStr);
} } catch (const std::invalid_argument&) {
catch (const std::invalid_argument&) {
return false; return false;
} }
return true; return true;
} }
bool fromStringValue(const std::string &inStr, bool &value){ bool fromStringValue(const std::string& inStr, bool& value) {
bool result = true; bool result = true;
inStr == "true"?value = true: inStr == "false"?value = false: result = false; inStr == "true" ? value = true :
inStr == "false" ? value = false : result = false;
return result; return result;
} }
bool fromStringValue(const std::string &inStr, float &value){ bool fromStringValue(const std::string& inStr, float& value) {
try { try {
value = std::stof( inStr ); value = std::stof(inStr);
} } catch (const std::invalid_argument&) {
catch (const std::invalid_argument&) {
return false; return false;
} }
return true; return true;
} }
bool fromStringValue(const std::string &inStr, double &value){ bool fromStringValue(const std::string& inStr, double& value) {
try { try {
value = std::stod( inStr ); value = std::stod(inStr);
} } catch (const std::invalid_argument&) {
catch (const std::invalid_argument&) {
return false; return false;
} }
return true; return true;
} }
} } // namespace helpers
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* Helpers.h * Helpers.h
* *
...@@ -29,36 +30,37 @@ namespace openapitools { ...@@ -29,36 +30,37 @@ namespace openapitools {
namespace server { namespace server {
namespace helpers { namespace helpers {
std::string toStringValue(const std::string &value); std::string toStringValue(const std::string& value);
std::string toStringValue(const int32_t &value); std::string toStringValue(const int32_t& value);
std::string toStringValue(const int64_t &value); std::string toStringValue(const int64_t& value);
std::string toStringValue(const bool &value); std::string toStringValue(const bool& value);
std::string toStringValue(const float &value); std::string toStringValue(const float& value);
std::string toStringValue(const double &value); std::string toStringValue(const double& value);
bool fromStringValue(const std::string &inStr, std::string &value); bool fromStringValue(const std::string& inStr, std::string& value);
bool fromStringValue(const std::string &inStr, int32_t &value); bool fromStringValue(const std::string& inStr, int32_t& value);
bool fromStringValue(const std::string &inStr, int64_t &value); bool fromStringValue(const std::string& inStr, int64_t& value);
bool fromStringValue(const std::string &inStr, bool &value); bool fromStringValue(const std::string& inStr, bool& value);
bool fromStringValue(const std::string &inStr, float &value); bool fromStringValue(const std::string& inStr, float& value);
bool fromStringValue(const std::string &inStr, double &value); bool fromStringValue(const std::string& inStr, double& value);
template<typename T> template<typename T>
bool fromStringValue(const std::vector<std::string> &inStr, std::vector<T> &value){ bool fromStringValue(
try{ const std::vector<std::string>& inStr, std::vector<T>& value) {
for(auto & item : inStr){ try {
for (auto& item : inStr) {
T itemValue; T itemValue;
if(fromStringValue(item, itemValue)){ if (fromStringValue(item, itemValue)) {
value.push_back(itemValue); value.push_back(itemValue);
} }
} }
} } catch (...) {
catch(...){
return false; return false;
} }
return value.size() > 0; return value.size() > 0;
} }
template<typename T> template<typename T>
bool fromStringValue(const std::string &inStr, std::vector<T> &value, char separator = ','){ bool fromStringValue(
const std::string& inStr, std::vector<T>& value, char separator = ',') {
std::vector<std::string> inStrings; std::vector<std::string> inStrings;
std::istringstream f(inStr); std::istringstream f(inStr);
std::string s; std::string s;
...@@ -66,11 +68,11 @@ namespace helpers { ...@@ -66,11 +68,11 @@ namespace helpers {
inStrings.push_back(s); inStrings.push_back(s);
} }
return fromStringValue(inStrings, value); return fromStringValue(inStrings, value);
}
}
}
}
} }
} // namespace helpers
} // namespace server
} // namespace openapitools
} // namespace org
#endif // Helpers_H_ #endif // Helpers_H_
\ No newline at end of file
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "InvalidParam.h" #include "InvalidParam.h"
...@@ -18,69 +18,53 @@ namespace openapitools { ...@@ -18,69 +18,53 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
InvalidParam::InvalidParam() InvalidParam::InvalidParam() {
{
m_Param = ""; m_Param = "";
m_Reason = ""; m_Reason = "";
m_ReasonIsSet = false; m_ReasonIsSet = false;
} }
InvalidParam::~InvalidParam() InvalidParam::~InvalidParam() {}
{
}
void InvalidParam::validate() void InvalidParam::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const InvalidParam& o) void to_json(nlohmann::json& j, const InvalidParam& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["param"] = o.m_Param; j["param"] = o.m_Param;
if(o.reasonIsSet()) if (o.reasonIsSet()) j["reason"] = o.m_Reason;
j["reason"] = o.m_Reason;
} }
void from_json(const nlohmann::json& j, InvalidParam& o) void from_json(const nlohmann::json& j, InvalidParam& o) {
{
j.at("param").get_to(o.m_Param); j.at("param").get_to(o.m_Param);
if(j.find("reason") != j.end()) if (j.find("reason") != j.end()) {
{
j.at("reason").get_to(o.m_Reason); j.at("reason").get_to(o.m_Reason);
o.m_ReasonIsSet = true; o.m_ReasonIsSet = true;
} }
} }
std::string InvalidParam::getParam() const std::string InvalidParam::getParam() const {
{
return m_Param; return m_Param;
} }
void InvalidParam::setParam(std::string const& value) void InvalidParam::setParam(std::string const& value) {
{
m_Param = value; m_Param = value;
} }
std::string InvalidParam::getReason() const std::string InvalidParam::getReason() const {
{
return m_Reason; return m_Reason;
} }
void InvalidParam::setReason(std::string const& value) void InvalidParam::setReason(std::string const& value) {
{
m_Reason = value; m_Reason = value;
m_ReasonIsSet = true; m_ReasonIsSet = true;
} }
bool InvalidParam::reasonIsSet() const bool InvalidParam::reasonIsSet() const {
{
return m_ReasonIsSet; return m_ReasonIsSet;
} }
void InvalidParam::unsetReason() void InvalidParam::unsetReason() {
{
m_ReasonIsSet = false; m_ReasonIsSet = false;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* InvalidParam.h * InvalidParam.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef InvalidParam_H_ #ifndef InvalidParam_H_
#define InvalidParam_H_ #define InvalidParam_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -30,9 +30,8 @@ namespace model { ...@@ -30,9 +30,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class InvalidParam class InvalidParam {
{ public:
public:
InvalidParam(); InvalidParam();
virtual ~InvalidParam(); virtual ~InvalidParam();
...@@ -56,16 +55,17 @@ public: ...@@ -56,16 +55,17 @@ public:
friend void to_json(nlohmann::json& j, const InvalidParam& o); friend void to_json(nlohmann::json& j, const InvalidParam& o);
friend void from_json(const nlohmann::json& j, InvalidParam& o); friend void from_json(const nlohmann::json& j, InvalidParam& o);
protected:
protected:
std::string m_Param; std::string m_Param;
std::string m_Reason; std::string m_Reason;
bool m_ReasonIsSet; bool m_ReasonIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* InvalidParam_H_ */ #endif /* InvalidParam_H_ */
...@@ -26,9 +26,11 @@ void Ipv6Addr::validate() { ...@@ -26,9 +26,11 @@ void Ipv6Addr::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const Ipv6Addr &o) { j = nlohmann::json(); } void to_json(nlohmann::json& j, const Ipv6Addr& o) {
j = nlohmann::json();
}
void from_json(const nlohmann::json &j, Ipv6Addr &o) {} void from_json(const nlohmann::json& j, Ipv6Addr& o) {}
} // namespace model } // namespace model
} // namespace server } // namespace server
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* Ipv6Addr.h * Ipv6Addr.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef Ipv6Addr_H_ #ifndef Ipv6Addr_H_
#define Ipv6Addr_H_ #define Ipv6Addr_H_
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
namespace org { namespace org {
...@@ -29,9 +29,8 @@ namespace model { ...@@ -29,9 +29,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class Ipv6Addr class Ipv6Addr {
{ public:
public:
Ipv6Addr(); Ipv6Addr();
virtual ~Ipv6Addr(); virtual ~Ipv6Addr();
...@@ -40,15 +39,15 @@ public: ...@@ -40,15 +39,15 @@ public:
///////////////////////////////////////////// /////////////////////////////////////////////
/// Ipv6Addr members /// Ipv6Addr members
friend void to_json(nlohmann::json& j, const Ipv6Addr& o); friend void to_json(nlohmann::json& j, const Ipv6Addr& o);
friend void from_json(const nlohmann::json& j, Ipv6Addr& o); friend void from_json(const nlohmann::json& j, Ipv6Addr& o);
protected:
protected:
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* Ipv6Addr_H_ */ #endif /* Ipv6Addr_H_ */
...@@ -29,26 +29,31 @@ void Link::validate() { ...@@ -29,26 +29,31 @@ void Link::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const Link &o) { void to_json(nlohmann::json& j, const Link& o) {
j = nlohmann::json(); j = nlohmann::json();
if (o.hrefIsSet()) if (o.hrefIsSet()) j["href"] = o.m_Href;
j["href"] = o.m_Href;
} }
void from_json(const nlohmann::json &j, Link &o) { void from_json(const nlohmann::json& j, Link& o) {
if (j.find("href") != j.end()) { if (j.find("href") != j.end()) {
j.at("href").get_to(o.m_Href); j.at("href").get_to(o.m_Href);
o.m_HrefIsSet = true; o.m_HrefIsSet = true;
} }
} }
std::string Link::getHref() const { return m_Href; } std::string Link::getHref() const {
void Link::setHref(std::string const &value) { return m_Href;
}
void Link::setHref(std::string const& value) {
m_Href = value; m_Href = value;
m_HrefIsSet = true; m_HrefIsSet = true;
} }
bool Link::hrefIsSet() const { return m_HrefIsSet; } bool Link::hrefIsSet() const {
void Link::unsetHref() { m_HrefIsSet = false; } return m_HrefIsSet;
}
void Link::unsetHref() {
m_HrefIsSet = false;
}
} // namespace model } // namespace model
} // namespace server } // namespace server
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* Link.h * Link.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef Link_H_ #ifndef Link_H_
#define Link_H_ #define Link_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -30,9 +30,8 @@ namespace model { ...@@ -30,9 +30,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class Link class Link {
{ public:
public:
Link(); Link();
virtual ~Link(); virtual ~Link();
...@@ -51,14 +50,15 @@ public: ...@@ -51,14 +50,15 @@ public:
friend void to_json(nlohmann::json& j, const Link& o); friend void to_json(nlohmann::json& j, const Link& o);
friend void from_json(const nlohmann::json& j, Link& o); friend void from_json(const nlohmann::json& j, Link& o);
protected:
protected:
std::string m_Href; std::string m_Href;
bool m_HrefIsSet; bool m_HrefIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* Link_H_ */ #endif /* Link_H_ */
...@@ -29,26 +29,31 @@ void LinksValueSchema::validate() { ...@@ -29,26 +29,31 @@ void LinksValueSchema::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const LinksValueSchema &o) { void to_json(nlohmann::json& j, const LinksValueSchema& o) {
j = nlohmann::json(); j = nlohmann::json();
if (o.hrefIsSet()) if (o.hrefIsSet()) j["href"] = o.m_Href;
j["href"] = o.m_Href;
} }
void from_json(const nlohmann::json &j, LinksValueSchema &o) { void from_json(const nlohmann::json& j, LinksValueSchema& o) {
if (j.find("href") != j.end()) { if (j.find("href") != j.end()) {
j.at("href").get_to(o.m_Href); j.at("href").get_to(o.m_Href);
o.m_HrefIsSet = true; o.m_HrefIsSet = true;
} }
} }
std::string LinksValueSchema::getHref() const { return m_Href; } std::string LinksValueSchema::getHref() const {
void LinksValueSchema::setHref(std::string const &value) { return m_Href;
}
void LinksValueSchema::setHref(std::string const& value) {
m_Href = value; m_Href = value;
m_HrefIsSet = true; m_HrefIsSet = true;
} }
bool LinksValueSchema::hrefIsSet() const { return m_HrefIsSet; } bool LinksValueSchema::hrefIsSet() const {
void LinksValueSchema::unsetHref() { m_HrefIsSet = false; } return m_HrefIsSet;
}
void LinksValueSchema::unsetHref() {
m_HrefIsSet = false;
}
} // namespace model } // namespace model
} // namespace server } // namespace server
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* LinksValueSchema.h * LinksValueSchema.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef LinksValueSchema_H_ #ifndef LinksValueSchema_H_
#define LinksValueSchema_H_ #define LinksValueSchema_H_
#include <string> #include <string>
#include "Link.h" #include "Link.h"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -31,9 +31,8 @@ namespace model { ...@@ -31,9 +31,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class LinksValueSchema class LinksValueSchema {
{ public:
public:
LinksValueSchema(); LinksValueSchema();
virtual ~LinksValueSchema(); virtual ~LinksValueSchema();
...@@ -52,14 +51,15 @@ public: ...@@ -52,14 +51,15 @@ public:
friend void to_json(nlohmann::json& j, const LinksValueSchema& o); friend void to_json(nlohmann::json& j, const LinksValueSchema& o);
friend void from_json(const nlohmann::json& j, LinksValueSchema& o); friend void from_json(const nlohmann::json& j, LinksValueSchema& o);
protected:
protected:
std::string m_Href; std::string m_Href;
bool m_HrefIsSet; bool m_HrefIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* LinksValueSchema_H_ */ #endif /* LinksValueSchema_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "ProblemDetails.h" #include "ProblemDetails.h"
...@@ -18,8 +18,7 @@ namespace openapitools { ...@@ -18,8 +18,7 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ProblemDetails::ProblemDetails() ProblemDetails::ProblemDetails() {
{
m_Type = ""; m_Type = "";
m_TypeIsSet = false; m_TypeIsSet = false;
m_Title = ""; m_Title = "";
...@@ -37,246 +36,187 @@ ProblemDetails::ProblemDetails() ...@@ -37,246 +36,187 @@ ProblemDetails::ProblemDetails()
m_SupportedFeaturesIsSet = false; m_SupportedFeaturesIsSet = false;
m_TargetScp = ""; m_TargetScp = "";
m_TargetScpIsSet = false; m_TargetScpIsSet = false;
} }
ProblemDetails::~ProblemDetails() ProblemDetails::~ProblemDetails() {}
{
}
void ProblemDetails::validate() void ProblemDetails::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const ProblemDetails& o) void to_json(nlohmann::json& j, const ProblemDetails& o) {
{
j = nlohmann::json(); j = nlohmann::json();
if(o.typeIsSet()) if (o.typeIsSet()) j["type"] = o.m_Type;
j["type"] = o.m_Type; if (o.titleIsSet()) j["title"] = o.m_Title;
if(o.titleIsSet()) if (o.statusIsSet()) j["status"] = o.m_Status;
j["title"] = o.m_Title; if (o.detailIsSet()) j["detail"] = o.m_Detail;
if(o.statusIsSet()) if (o.instanceIsSet()) j["instance"] = o.m_Instance;
j["status"] = o.m_Status; if (o.causeIsSet()) j["cause"] = o.m_Cause;
if(o.detailIsSet()) if (o.invalidParamsIsSet() || !o.m_InvalidParams.empty())
j["detail"] = o.m_Detail;
if(o.instanceIsSet())
j["instance"] = o.m_Instance;
if(o.causeIsSet())
j["cause"] = o.m_Cause;
if(o.invalidParamsIsSet() || !o.m_InvalidParams.empty())
j["invalidParams"] = o.m_InvalidParams; j["invalidParams"] = o.m_InvalidParams;
if(o.supportedFeaturesIsSet()) if (o.supportedFeaturesIsSet())
j["supportedFeatures"] = o.m_SupportedFeatures; j["supportedFeatures"] = o.m_SupportedFeatures;
if(o.targetScpIsSet()) if (o.targetScpIsSet()) j["targetScp"] = o.m_TargetScp;
j["targetScp"] = o.m_TargetScp;
} }
void from_json(const nlohmann::json& j, ProblemDetails& o) void from_json(const nlohmann::json& j, ProblemDetails& o) {
{ if (j.find("type") != j.end()) {
if(j.find("type") != j.end())
{
j.at("type").get_to(o.m_Type); j.at("type").get_to(o.m_Type);
o.m_TypeIsSet = true; o.m_TypeIsSet = true;
} }
if(j.find("title") != j.end()) if (j.find("title") != j.end()) {
{
j.at("title").get_to(o.m_Title); j.at("title").get_to(o.m_Title);
o.m_TitleIsSet = true; o.m_TitleIsSet = true;
} }
if(j.find("status") != j.end()) if (j.find("status") != j.end()) {
{
j.at("status").get_to(o.m_Status); j.at("status").get_to(o.m_Status);
o.m_StatusIsSet = true; o.m_StatusIsSet = true;
} }
if(j.find("detail") != j.end()) if (j.find("detail") != j.end()) {
{
j.at("detail").get_to(o.m_Detail); j.at("detail").get_to(o.m_Detail);
o.m_DetailIsSet = true; o.m_DetailIsSet = true;
} }
if(j.find("instance") != j.end()) if (j.find("instance") != j.end()) {
{
j.at("instance").get_to(o.m_Instance); j.at("instance").get_to(o.m_Instance);
o.m_InstanceIsSet = true; o.m_InstanceIsSet = true;
} }
if(j.find("cause") != j.end()) if (j.find("cause") != j.end()) {
{
j.at("cause").get_to(o.m_Cause); j.at("cause").get_to(o.m_Cause);
o.m_CauseIsSet = true; o.m_CauseIsSet = true;
} }
if(j.find("invalidParams") != j.end()) if (j.find("invalidParams") != j.end()) {
{
j.at("invalidParams").get_to(o.m_InvalidParams); j.at("invalidParams").get_to(o.m_InvalidParams);
o.m_InvalidParamsIsSet = true; o.m_InvalidParamsIsSet = true;
} }
if(j.find("supportedFeatures") != j.end()) if (j.find("supportedFeatures") != j.end()) {
{
j.at("supportedFeatures").get_to(o.m_SupportedFeatures); j.at("supportedFeatures").get_to(o.m_SupportedFeatures);
o.m_SupportedFeaturesIsSet = true; o.m_SupportedFeaturesIsSet = true;
} }
if(j.find("targetScp") != j.end()) if (j.find("targetScp") != j.end()) {
{
j.at("targetScp").get_to(o.m_TargetScp); j.at("targetScp").get_to(o.m_TargetScp);
o.m_TargetScpIsSet = true; o.m_TargetScpIsSet = true;
} }
} }
std::string ProblemDetails::getType() const std::string ProblemDetails::getType() const {
{
return m_Type; return m_Type;
} }
void ProblemDetails::setType(std::string const& value) void ProblemDetails::setType(std::string const& value) {
{
m_Type = value; m_Type = value;
m_TypeIsSet = true; m_TypeIsSet = true;
} }
bool ProblemDetails::typeIsSet() const bool ProblemDetails::typeIsSet() const {
{
return m_TypeIsSet; return m_TypeIsSet;
} }
void ProblemDetails::unsetType() void ProblemDetails::unsetType() {
{
m_TypeIsSet = false; m_TypeIsSet = false;
} }
std::string ProblemDetails::getTitle() const std::string ProblemDetails::getTitle() const {
{
return m_Title; return m_Title;
} }
void ProblemDetails::setTitle(std::string const& value) void ProblemDetails::setTitle(std::string const& value) {
{
m_Title = value; m_Title = value;
m_TitleIsSet = true; m_TitleIsSet = true;
} }
bool ProblemDetails::titleIsSet() const bool ProblemDetails::titleIsSet() const {
{
return m_TitleIsSet; return m_TitleIsSet;
} }
void ProblemDetails::unsetTitle() void ProblemDetails::unsetTitle() {
{
m_TitleIsSet = false; m_TitleIsSet = false;
} }
int32_t ProblemDetails::getStatus() const int32_t ProblemDetails::getStatus() const {
{
return m_Status; return m_Status;
} }
void ProblemDetails::setStatus(int32_t const value) void ProblemDetails::setStatus(int32_t const value) {
{
m_Status = value; m_Status = value;
m_StatusIsSet = true; m_StatusIsSet = true;
} }
bool ProblemDetails::statusIsSet() const bool ProblemDetails::statusIsSet() const {
{
return m_StatusIsSet; return m_StatusIsSet;
} }
void ProblemDetails::unsetStatus() void ProblemDetails::unsetStatus() {
{
m_StatusIsSet = false; m_StatusIsSet = false;
} }
std::string ProblemDetails::getDetail() const std::string ProblemDetails::getDetail() const {
{
return m_Detail; return m_Detail;
} }
void ProblemDetails::setDetail(std::string const& value) void ProblemDetails::setDetail(std::string const& value) {
{
m_Detail = value; m_Detail = value;
m_DetailIsSet = true; m_DetailIsSet = true;
} }
bool ProblemDetails::detailIsSet() const bool ProblemDetails::detailIsSet() const {
{
return m_DetailIsSet; return m_DetailIsSet;
} }
void ProblemDetails::unsetDetail() void ProblemDetails::unsetDetail() {
{
m_DetailIsSet = false; m_DetailIsSet = false;
} }
std::string ProblemDetails::getInstance() const std::string ProblemDetails::getInstance() const {
{
return m_Instance; return m_Instance;
} }
void ProblemDetails::setInstance(std::string const& value) void ProblemDetails::setInstance(std::string const& value) {
{
m_Instance = value; m_Instance = value;
m_InstanceIsSet = true; m_InstanceIsSet = true;
} }
bool ProblemDetails::instanceIsSet() const bool ProblemDetails::instanceIsSet() const {
{
return m_InstanceIsSet; return m_InstanceIsSet;
} }
void ProblemDetails::unsetInstance() void ProblemDetails::unsetInstance() {
{
m_InstanceIsSet = false; m_InstanceIsSet = false;
} }
std::string ProblemDetails::getCause() const std::string ProblemDetails::getCause() const {
{
return m_Cause; return m_Cause;
} }
void ProblemDetails::setCause(std::string const& value) void ProblemDetails::setCause(std::string const& value) {
{
m_Cause = value; m_Cause = value;
m_CauseIsSet = true; m_CauseIsSet = true;
} }
bool ProblemDetails::causeIsSet() const bool ProblemDetails::causeIsSet() const {
{
return m_CauseIsSet; return m_CauseIsSet;
} }
void ProblemDetails::unsetCause() void ProblemDetails::unsetCause() {
{
m_CauseIsSet = false; m_CauseIsSet = false;
} }
std::vector<InvalidParam>& ProblemDetails::getInvalidParams() std::vector<InvalidParam>& ProblemDetails::getInvalidParams() {
{
return m_InvalidParams; return m_InvalidParams;
} }
void ProblemDetails::setInvalidParams(std::vector<InvalidParam> const& value) void ProblemDetails::setInvalidParams(std::vector<InvalidParam> const& value) {
{
m_InvalidParams = value; m_InvalidParams = value;
m_InvalidParamsIsSet = true; m_InvalidParamsIsSet = true;
} }
bool ProblemDetails::invalidParamsIsSet() const bool ProblemDetails::invalidParamsIsSet() const {
{
return m_InvalidParamsIsSet; return m_InvalidParamsIsSet;
} }
void ProblemDetails::unsetInvalidParams() void ProblemDetails::unsetInvalidParams() {
{
m_InvalidParamsIsSet = false; m_InvalidParamsIsSet = false;
} }
std::string ProblemDetails::getSupportedFeatures() const std::string ProblemDetails::getSupportedFeatures() const {
{
return m_SupportedFeatures; return m_SupportedFeatures;
} }
void ProblemDetails::setSupportedFeatures(std::string const& value) void ProblemDetails::setSupportedFeatures(std::string const& value) {
{
m_SupportedFeatures = value; m_SupportedFeatures = value;
m_SupportedFeaturesIsSet = true; m_SupportedFeaturesIsSet = true;
} }
bool ProblemDetails::supportedFeaturesIsSet() const bool ProblemDetails::supportedFeaturesIsSet() const {
{
return m_SupportedFeaturesIsSet; return m_SupportedFeaturesIsSet;
} }
void ProblemDetails::unsetSupportedFeatures() void ProblemDetails::unsetSupportedFeatures() {
{
m_SupportedFeaturesIsSet = false; m_SupportedFeaturesIsSet = false;
} }
std::string ProblemDetails::getTargetScp() const std::string ProblemDetails::getTargetScp() const {
{
return m_TargetScp; return m_TargetScp;
} }
void ProblemDetails::setTargetScp(std::string const& value) void ProblemDetails::setTargetScp(std::string const& value) {
{
m_TargetScp = value; m_TargetScp = value;
m_TargetScpIsSet = true; m_TargetScpIsSet = true;
} }
bool ProblemDetails::targetScpIsSet() const bool ProblemDetails::targetScpIsSet() const {
{
return m_TargetScpIsSet; return m_TargetScpIsSet;
} }
void ProblemDetails::unsetTargetScp() void ProblemDetails::unsetTargetScp() {
{
m_TargetScpIsSet = false; m_TargetScpIsSet = false;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
...@@ -33,7 +33,7 @@ namespace model { ...@@ -33,7 +33,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class ProblemDetails { class ProblemDetails {
public: public:
ProblemDetails(); ProblemDetails();
virtual ~ProblemDetails(); virtual ~ProblemDetails();
...@@ -46,14 +46,14 @@ public: ...@@ -46,14 +46,14 @@ public:
/// ///
/// </summary> /// </summary>
std::string getType() const; std::string getType() const;
void setType(std::string const &value); void setType(std::string const& value);
bool typeIsSet() const; bool typeIsSet() const;
void unsetType(); void unsetType();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getTitle() const; std::string getTitle() const;
void setTitle(std::string const &value); void setTitle(std::string const& value);
bool titleIsSet() const; bool titleIsSet() const;
void unsetTitle(); void unsetTitle();
/// <summary> /// <summary>
...@@ -67,49 +67,49 @@ public: ...@@ -67,49 +67,49 @@ public:
/// ///
/// </summary> /// </summary>
std::string getDetail() const; std::string getDetail() const;
void setDetail(std::string const &value); void setDetail(std::string const& value);
bool detailIsSet() const; bool detailIsSet() const;
void unsetDetail(); void unsetDetail();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getInstance() const; std::string getInstance() const;
void setInstance(std::string const &value); void setInstance(std::string const& value);
bool instanceIsSet() const; bool instanceIsSet() const;
void unsetInstance(); void unsetInstance();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getCause() const; std::string getCause() const;
void setCause(std::string const &value); void setCause(std::string const& value);
bool causeIsSet() const; bool causeIsSet() const;
void unsetCause(); void unsetCause();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::vector<InvalidParam> &getInvalidParams(); std::vector<InvalidParam>& getInvalidParams();
void setInvalidParams(std::vector<InvalidParam> const &value); void setInvalidParams(std::vector<InvalidParam> const& value);
bool invalidParamsIsSet() const; bool invalidParamsIsSet() const;
void unsetInvalidParams(); void unsetInvalidParams();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getSupportedFeatures() const; std::string getSupportedFeatures() const;
void setSupportedFeatures(std::string const &value); void setSupportedFeatures(std::string const& value);
bool supportedFeaturesIsSet() const; bool supportedFeaturesIsSet() const;
void unsetSupportedFeatures(); void unsetSupportedFeatures();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getTargetScp() const; std::string getTargetScp() const;
void setTargetScp(std::string const &value); void setTargetScp(std::string const& value);
bool targetScpIsSet() const; bool targetScpIsSet() const;
void unsetTargetScp(); void unsetTargetScp();
friend void to_json(nlohmann::json &j, const ProblemDetails &o); friend void to_json(nlohmann::json& j, const ProblemDetails& o);
friend void from_json(const nlohmann::json &j, ProblemDetails &o); friend void from_json(const nlohmann::json& j, ProblemDetails& o);
protected: protected:
std::string m_Type; std::string m_Type;
bool m_TypeIsSet; bool m_TypeIsSet;
std::string m_Title; std::string m_Title;
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "ResynchronizationInfo.h" #include "ResynchronizationInfo.h"
...@@ -18,54 +18,42 @@ namespace openapitools { ...@@ -18,54 +18,42 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
ResynchronizationInfo::ResynchronizationInfo() ResynchronizationInfo::ResynchronizationInfo() {
{
m_Rand = ""; m_Rand = "";
m_Auts = ""; m_Auts = "";
} }
ResynchronizationInfo::~ResynchronizationInfo() ResynchronizationInfo::~ResynchronizationInfo() {}
{
}
void ResynchronizationInfo::validate() void ResynchronizationInfo::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const ResynchronizationInfo& o) void to_json(nlohmann::json& j, const ResynchronizationInfo& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["rand"] = o.m_Rand; j["rand"] = o.m_Rand;
j["auts"] = o.m_Auts; j["auts"] = o.m_Auts;
} }
void from_json(const nlohmann::json& j, ResynchronizationInfo& o) void from_json(const nlohmann::json& j, ResynchronizationInfo& o) {
{
j.at("rand").get_to(o.m_Rand); j.at("rand").get_to(o.m_Rand);
j.at("auts").get_to(o.m_Auts); j.at("auts").get_to(o.m_Auts);
} }
std::string ResynchronizationInfo::getRand() const std::string ResynchronizationInfo::getRand() const {
{
return m_Rand; return m_Rand;
} }
void ResynchronizationInfo::setRand(std::string const& value) void ResynchronizationInfo::setRand(std::string const& value) {
{
m_Rand = value; m_Rand = value;
} }
std::string ResynchronizationInfo::getAuts() const std::string ResynchronizationInfo::getAuts() const {
{
return m_Auts; return m_Auts;
} }
void ResynchronizationInfo::setAuts(std::string const& value) void ResynchronizationInfo::setAuts(std::string const& value) {
{
m_Auts = value; m_Auts = value;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* ResynchronizationInfo.h * ResynchronizationInfo.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef ResynchronizationInfo_H_ #ifndef ResynchronizationInfo_H_
#define ResynchronizationInfo_H_ #define ResynchronizationInfo_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -30,9 +30,8 @@ namespace model { ...@@ -30,9 +30,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class ResynchronizationInfo class ResynchronizationInfo {
{ public:
public:
ResynchronizationInfo(); ResynchronizationInfo();
virtual ~ResynchronizationInfo(); virtual ~ResynchronizationInfo();
...@@ -54,16 +53,16 @@ public: ...@@ -54,16 +53,16 @@ public:
friend void to_json(nlohmann::json& j, const ResynchronizationInfo& o); friend void to_json(nlohmann::json& j, const ResynchronizationInfo& o);
friend void from_json(const nlohmann::json& j, ResynchronizationInfo& o); friend void from_json(const nlohmann::json& j, ResynchronizationInfo& o);
protected:
protected:
std::string m_Rand; std::string m_Rand;
std::string m_Auts; std::string m_Auts;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* ResynchronizationInfo_H_ */ #endif /* ResynchronizationInfo_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "RgAuthCtx.h" #include "RgAuthCtx.h"
...@@ -18,94 +18,72 @@ namespace openapitools { ...@@ -18,94 +18,72 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
RgAuthCtx::RgAuthCtx() RgAuthCtx::RgAuthCtx() {
{
m_Supi = ""; m_Supi = "";
m_SupiIsSet = false; m_SupiIsSet = false;
m_AuthInd = false; m_AuthInd = false;
m_AuthIndIsSet = false; m_AuthIndIsSet = false;
} }
RgAuthCtx::~RgAuthCtx() RgAuthCtx::~RgAuthCtx() {}
{
}
void RgAuthCtx::validate() void RgAuthCtx::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const RgAuthCtx& o) void to_json(nlohmann::json& j, const RgAuthCtx& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["authResult"] = o.m_AuthResult; j["authResult"] = o.m_AuthResult;
if(o.supiIsSet()) if (o.supiIsSet()) j["supi"] = o.m_Supi;
j["supi"] = o.m_Supi; if (o.authIndIsSet()) j["authInd"] = o.m_AuthInd;
if(o.authIndIsSet())
j["authInd"] = o.m_AuthInd;
} }
void from_json(const nlohmann::json& j, RgAuthCtx& o) void from_json(const nlohmann::json& j, RgAuthCtx& o) {
{
j.at("authResult").get_to(o.m_AuthResult); j.at("authResult").get_to(o.m_AuthResult);
if(j.find("supi") != j.end()) if (j.find("supi") != j.end()) {
{
j.at("supi").get_to(o.m_Supi); j.at("supi").get_to(o.m_Supi);
o.m_SupiIsSet = true; o.m_SupiIsSet = true;
} }
if(j.find("authInd") != j.end()) if (j.find("authInd") != j.end()) {
{
j.at("authInd").get_to(o.m_AuthInd); j.at("authInd").get_to(o.m_AuthInd);
o.m_AuthIndIsSet = true; o.m_AuthIndIsSet = true;
} }
} }
AuthResult RgAuthCtx::getAuthResult() const AuthResult RgAuthCtx::getAuthResult() const {
{
return m_AuthResult; return m_AuthResult;
} }
void RgAuthCtx::setAuthResult(AuthResult const& value) void RgAuthCtx::setAuthResult(AuthResult const& value) {
{
m_AuthResult = value; m_AuthResult = value;
} }
std::string RgAuthCtx::getSupi() const std::string RgAuthCtx::getSupi() const {
{
return m_Supi; return m_Supi;
} }
void RgAuthCtx::setSupi(std::string const& value) void RgAuthCtx::setSupi(std::string const& value) {
{
m_Supi = value; m_Supi = value;
m_SupiIsSet = true; m_SupiIsSet = true;
} }
bool RgAuthCtx::supiIsSet() const bool RgAuthCtx::supiIsSet() const {
{
return m_SupiIsSet; return m_SupiIsSet;
} }
void RgAuthCtx::unsetSupi() void RgAuthCtx::unsetSupi() {
{
m_SupiIsSet = false; m_SupiIsSet = false;
} }
bool RgAuthCtx::isAuthInd() const bool RgAuthCtx::isAuthInd() const {
{
return m_AuthInd; return m_AuthInd;
} }
void RgAuthCtx::setAuthInd(bool const value) void RgAuthCtx::setAuthInd(bool const value) {
{
m_AuthInd = value; m_AuthInd = value;
m_AuthIndIsSet = true; m_AuthIndIsSet = true;
} }
bool RgAuthCtx::authIndIsSet() const bool RgAuthCtx::authIndIsSet() const {
{
return m_AuthIndIsSet; return m_AuthIndIsSet;
} }
void RgAuthCtx::unsetAuthInd() void RgAuthCtx::unsetAuthInd() {
{
m_AuthIndIsSet = false; m_AuthIndIsSet = false;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* RgAuthCtx.h * RgAuthCtx.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef RgAuthCtx_H_ #ifndef RgAuthCtx_H_
#define RgAuthCtx_H_ #define RgAuthCtx_H_
#include <string> #include <string>
#include "AuthResult.h" #include "AuthResult.h"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -31,9 +31,8 @@ namespace model { ...@@ -31,9 +31,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class RgAuthCtx class RgAuthCtx {
{ public:
public:
RgAuthCtx(); RgAuthCtx();
virtual ~RgAuthCtx(); virtual ~RgAuthCtx();
...@@ -64,7 +63,8 @@ public: ...@@ -64,7 +63,8 @@ public:
friend void to_json(nlohmann::json& j, const RgAuthCtx& o); friend void to_json(nlohmann::json& j, const RgAuthCtx& o);
friend void from_json(const nlohmann::json& j, RgAuthCtx& o); friend void from_json(const nlohmann::json& j, RgAuthCtx& o);
protected:
protected:
AuthResult m_AuthResult; AuthResult m_AuthResult;
std::string m_Supi; std::string m_Supi;
...@@ -73,9 +73,9 @@ protected: ...@@ -73,9 +73,9 @@ protected:
bool m_AuthIndIsSet; bool m_AuthIndIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* RgAuthCtx_H_ */ #endif /* RgAuthCtx_H_ */
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "RgAuthenticationInfo.h" #include "RgAuthenticationInfo.h"
...@@ -18,54 +18,42 @@ namespace openapitools { ...@@ -18,54 +18,42 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
RgAuthenticationInfo::RgAuthenticationInfo() RgAuthenticationInfo::RgAuthenticationInfo() {
{
m_Suci = ""; m_Suci = "";
m_AuthenticatedInd = false; m_AuthenticatedInd = false;
} }
RgAuthenticationInfo::~RgAuthenticationInfo() RgAuthenticationInfo::~RgAuthenticationInfo() {}
{
}
void RgAuthenticationInfo::validate() void RgAuthenticationInfo::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const RgAuthenticationInfo& o) void to_json(nlohmann::json& j, const RgAuthenticationInfo& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["suci"] = o.m_Suci; j["suci"] = o.m_Suci;
j["authenticatedInd"] = o.m_AuthenticatedInd; j["authenticatedInd"] = o.m_AuthenticatedInd;
} }
void from_json(const nlohmann::json& j, RgAuthenticationInfo& o) void from_json(const nlohmann::json& j, RgAuthenticationInfo& o) {
{
j.at("suci").get_to(o.m_Suci); j.at("suci").get_to(o.m_Suci);
j.at("authenticatedInd").get_to(o.m_AuthenticatedInd); j.at("authenticatedInd").get_to(o.m_AuthenticatedInd);
} }
std::string RgAuthenticationInfo::getSuci() const std::string RgAuthenticationInfo::getSuci() const {
{
return m_Suci; return m_Suci;
} }
void RgAuthenticationInfo::setSuci(std::string const& value) void RgAuthenticationInfo::setSuci(std::string const& value) {
{
m_Suci = value; m_Suci = value;
} }
bool RgAuthenticationInfo::isAuthenticatedInd() const bool RgAuthenticationInfo::isAuthenticatedInd() const {
{
return m_AuthenticatedInd; return m_AuthenticatedInd;
} }
void RgAuthenticationInfo::setAuthenticatedInd(bool const value) void RgAuthenticationInfo::setAuthenticatedInd(bool const value) {
{
m_AuthenticatedInd = value; m_AuthenticatedInd = value;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* RgAuthenticationInfo.h * RgAuthenticationInfo.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef RgAuthenticationInfo_H_ #ifndef RgAuthenticationInfo_H_
#define RgAuthenticationInfo_H_ #define RgAuthenticationInfo_H_
#include <string> #include <string>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
...@@ -30,9 +30,8 @@ namespace model { ...@@ -30,9 +30,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class RgAuthenticationInfo class RgAuthenticationInfo {
{ public:
public:
RgAuthenticationInfo(); RgAuthenticationInfo();
virtual ~RgAuthenticationInfo(); virtual ~RgAuthenticationInfo();
...@@ -54,16 +53,16 @@ public: ...@@ -54,16 +53,16 @@ public:
friend void to_json(nlohmann::json& j, const RgAuthenticationInfo& o); friend void to_json(nlohmann::json& j, const RgAuthenticationInfo& o);
friend void from_json(const nlohmann::json& j, RgAuthenticationInfo& o); friend void from_json(const nlohmann::json& j, RgAuthenticationInfo& o);
protected:
protected:
std::string m_Suci; std::string m_Suci;
bool m_AuthenticatedInd; bool m_AuthenticatedInd;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* RgAuthenticationInfo_H_ */ #endif /* RgAuthenticationInfo_H_ */
...@@ -35,7 +35,7 @@ void TraceData::validate() { ...@@ -35,7 +35,7 @@ void TraceData::validate() {
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json &j, const TraceData &o) { void to_json(nlohmann::json& j, const TraceData& o) {
j = nlohmann::json(); j = nlohmann::json();
j["traceRef"] = o.m_TraceRef; j["traceRef"] = o.m_TraceRef;
j["traceDepth"] = o.m_TraceDepth; j["traceDepth"] = o.m_TraceDepth;
...@@ -45,11 +45,10 @@ void to_json(nlohmann::json &j, const TraceData &o) { ...@@ -45,11 +45,10 @@ void to_json(nlohmann::json &j, const TraceData &o) {
j["collectionEntityIpv4Addr"] = o.m_CollectionEntityIpv4Addr; j["collectionEntityIpv4Addr"] = o.m_CollectionEntityIpv4Addr;
if (o.collectionEntityIpv6AddrIsSet()) if (o.collectionEntityIpv6AddrIsSet())
j["collectionEntityIpv6Addr"] = o.m_CollectionEntityIpv6Addr; j["collectionEntityIpv6Addr"] = o.m_CollectionEntityIpv6Addr;
if (o.interfaceListIsSet()) if (o.interfaceListIsSet()) j["interfaceList"] = o.m_InterfaceList;
j["interfaceList"] = o.m_InterfaceList;
} }
void from_json(const nlohmann::json &j, TraceData &o) { void from_json(const nlohmann::json& j, TraceData& o) {
j.at("traceRef").get_to(o.m_TraceRef); j.at("traceRef").get_to(o.m_TraceRef);
j.at("traceDepth").get_to(o.m_TraceDepth); j.at("traceDepth").get_to(o.m_TraceDepth);
j.at("neTypeList").get_to(o.m_NeTypeList); j.at("neTypeList").get_to(o.m_NeTypeList);
...@@ -68,20 +67,34 @@ void from_json(const nlohmann::json &j, TraceData &o) { ...@@ -68,20 +67,34 @@ void from_json(const nlohmann::json &j, TraceData &o) {
} }
} }
std::string TraceData::getTraceRef() const { return m_TraceRef; } std::string TraceData::getTraceRef() const {
void TraceData::setTraceRef(std::string const &value) { m_TraceRef = value; } return m_TraceRef;
TraceDepth TraceData::getTraceDepth() const { return m_TraceDepth; } }
void TraceData::setTraceDepth(TraceDepth const &value) { m_TraceDepth = value; } void TraceData::setTraceRef(std::string const& value) {
std::string TraceData::getNeTypeList() const { return m_NeTypeList; } m_TraceRef = value;
void TraceData::setNeTypeList(std::string const &value) { }
TraceDepth TraceData::getTraceDepth() const {
return m_TraceDepth;
}
void TraceData::setTraceDepth(TraceDepth const& value) {
m_TraceDepth = value;
}
std::string TraceData::getNeTypeList() const {
return m_NeTypeList;
}
void TraceData::setNeTypeList(std::string const& value) {
m_NeTypeList = value; m_NeTypeList = value;
} }
std::string TraceData::getEventList() const { return m_EventList; } std::string TraceData::getEventList() const {
void TraceData::setEventList(std::string const &value) { m_EventList = value; } return m_EventList;
}
void TraceData::setEventList(std::string const& value) {
m_EventList = value;
}
std::string TraceData::getCollectionEntityIpv4Addr() const { std::string TraceData::getCollectionEntityIpv4Addr() const {
return m_CollectionEntityIpv4Addr; return m_CollectionEntityIpv4Addr;
} }
void TraceData::setCollectionEntityIpv4Addr(std::string const &value) { void TraceData::setCollectionEntityIpv4Addr(std::string const& value) {
m_CollectionEntityIpv4Addr = value; m_CollectionEntityIpv4Addr = value;
m_CollectionEntityIpv4AddrIsSet = true; m_CollectionEntityIpv4AddrIsSet = true;
} }
...@@ -94,7 +107,7 @@ void TraceData::unsetCollectionEntityIpv4Addr() { ...@@ -94,7 +107,7 @@ void TraceData::unsetCollectionEntityIpv4Addr() {
Ipv6Addr TraceData::getCollectionEntityIpv6Addr() const { Ipv6Addr TraceData::getCollectionEntityIpv6Addr() const {
return m_CollectionEntityIpv6Addr; return m_CollectionEntityIpv6Addr;
} }
void TraceData::setCollectionEntityIpv6Addr(Ipv6Addr const &value) { void TraceData::setCollectionEntityIpv6Addr(Ipv6Addr const& value) {
m_CollectionEntityIpv6Addr = value; m_CollectionEntityIpv6Addr = value;
m_CollectionEntityIpv6AddrIsSet = true; m_CollectionEntityIpv6AddrIsSet = true;
} }
...@@ -104,13 +117,19 @@ bool TraceData::collectionEntityIpv6AddrIsSet() const { ...@@ -104,13 +117,19 @@ bool TraceData::collectionEntityIpv6AddrIsSet() const {
void TraceData::unsetCollectionEntityIpv6Addr() { void TraceData::unsetCollectionEntityIpv6Addr() {
m_CollectionEntityIpv6AddrIsSet = false; m_CollectionEntityIpv6AddrIsSet = false;
} }
std::string TraceData::getInterfaceList() const { return m_InterfaceList; } std::string TraceData::getInterfaceList() const {
void TraceData::setInterfaceList(std::string const &value) { return m_InterfaceList;
}
void TraceData::setInterfaceList(std::string const& value) {
m_InterfaceList = value; m_InterfaceList = value;
m_InterfaceListIsSet = true; m_InterfaceListIsSet = true;
} }
bool TraceData::interfaceListIsSet() const { return m_InterfaceListIsSet; } bool TraceData::interfaceListIsSet() const {
void TraceData::unsetInterfaceList() { m_InterfaceListIsSet = false; } return m_InterfaceListIsSet;
}
void TraceData::unsetInterfaceList() {
m_InterfaceListIsSet = false;
}
} // namespace model } // namespace model
} // namespace server } // namespace server
......
...@@ -33,7 +33,7 @@ namespace model { ...@@ -33,7 +33,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class TraceData { class TraceData {
public: public:
TraceData(); TraceData();
virtual ~TraceData(); virtual ~TraceData();
...@@ -46,48 +46,48 @@ public: ...@@ -46,48 +46,48 @@ public:
/// ///
/// </summary> /// </summary>
std::string getTraceRef() const; std::string getTraceRef() const;
void setTraceRef(std::string const &value); void setTraceRef(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
TraceDepth getTraceDepth() const; TraceDepth getTraceDepth() const;
void setTraceDepth(TraceDepth const &value); void setTraceDepth(TraceDepth const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getNeTypeList() const; std::string getNeTypeList() const;
void setNeTypeList(std::string const &value); void setNeTypeList(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getEventList() const; std::string getEventList() const;
void setEventList(std::string const &value); void setEventList(std::string const& value);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getCollectionEntityIpv4Addr() const; std::string getCollectionEntityIpv4Addr() const;
void setCollectionEntityIpv4Addr(std::string const &value); void setCollectionEntityIpv4Addr(std::string const& value);
bool collectionEntityIpv4AddrIsSet() const; bool collectionEntityIpv4AddrIsSet() const;
void unsetCollectionEntityIpv4Addr(); void unsetCollectionEntityIpv4Addr();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
Ipv6Addr getCollectionEntityIpv6Addr() const; Ipv6Addr getCollectionEntityIpv6Addr() const;
void setCollectionEntityIpv6Addr(Ipv6Addr const &value); void setCollectionEntityIpv6Addr(Ipv6Addr const& value);
bool collectionEntityIpv6AddrIsSet() const; bool collectionEntityIpv6AddrIsSet() const;
void unsetCollectionEntityIpv6Addr(); void unsetCollectionEntityIpv6Addr();
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
std::string getInterfaceList() const; std::string getInterfaceList() const;
void setInterfaceList(std::string const &value); void setInterfaceList(std::string const& value);
bool interfaceListIsSet() const; bool interfaceListIsSet() const;
void unsetInterfaceList(); void unsetInterfaceList();
friend void to_json(nlohmann::json &j, const TraceData &o); friend void to_json(nlohmann::json& j, const TraceData& o);
friend void from_json(const nlohmann::json &j, TraceData &o); friend void from_json(const nlohmann::json& j, TraceData& o);
protected: protected:
std::string m_TraceRef; std::string m_TraceRef;
TraceDepth m_TraceDepth; TraceDepth m_TraceDepth;
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "TraceDepth.h" #include "TraceDepth.h"
...@@ -18,32 +18,21 @@ namespace openapitools { ...@@ -18,32 +18,21 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
TraceDepth::TraceDepth() TraceDepth::TraceDepth() {}
{
}
TraceDepth::~TraceDepth() TraceDepth::~TraceDepth() {}
{
}
void TraceDepth::validate() void TraceDepth::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const TraceDepth& o) void to_json(nlohmann::json& j, const TraceDepth& o) {
{
j = nlohmann::json(); j = nlohmann::json();
} }
void from_json(const nlohmann::json& j, TraceDepth& o) void from_json(const nlohmann::json& j, TraceDepth& o) {}
{
}
}
}
}
}
} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
...@@ -30,7 +30,7 @@ namespace model { ...@@ -30,7 +30,7 @@ namespace model {
/// ///
/// </summary> /// </summary>
class TraceDepth { class TraceDepth {
public: public:
TraceDepth(); TraceDepth();
virtual ~TraceDepth(); virtual ~TraceDepth();
...@@ -39,10 +39,10 @@ public: ...@@ -39,10 +39,10 @@ public:
///////////////////////////////////////////// /////////////////////////////////////////////
/// TraceDepth members /// TraceDepth members
friend void to_json(nlohmann::json &j, const TraceDepth &o); friend void to_json(nlohmann::json& j, const TraceDepth& o);
friend void from_json(const nlohmann::json &j, TraceDepth &o); friend void from_json(const nlohmann::json& j, TraceDepth& o);
protected: protected:
}; };
} // namespace model } // namespace model
......
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
#include "UEAuthenticationCtx.h" #include "UEAuthenticationCtx.h"
...@@ -18,88 +18,70 @@ namespace openapitools { ...@@ -18,88 +18,70 @@ namespace openapitools {
namespace server { namespace server {
namespace model { namespace model {
UEAuthenticationCtx::UEAuthenticationCtx() UEAuthenticationCtx::UEAuthenticationCtx() {
{
m_ServingNetworkName = ""; m_ServingNetworkName = "";
m_ServingNetworkNameIsSet = false; m_ServingNetworkNameIsSet = false;
} }
UEAuthenticationCtx::~UEAuthenticationCtx() UEAuthenticationCtx::~UEAuthenticationCtx() {}
{
}
void UEAuthenticationCtx::validate() void UEAuthenticationCtx::validate() {
{
// TODO: implement validation // TODO: implement validation
} }
void to_json(nlohmann::json& j, const UEAuthenticationCtx& o) void to_json(nlohmann::json& j, const UEAuthenticationCtx& o) {
{
j = nlohmann::json(); j = nlohmann::json();
j["authType"] = o.m_AuthType; j["authType"] = o.m_AuthType;
j["5gAuthData"] = o.m_r_5gAuthData; j["5gAuthData"] = o.m_r_5gAuthData;
j["_links"] = o.m__links; j["_links"] = o.m__links;
if(o.servingNetworkNameIsSet()) if (o.servingNetworkNameIsSet())
j["servingNetworkName"] = o.m_ServingNetworkName; j["servingNetworkName"] = o.m_ServingNetworkName;
} }
void from_json(const nlohmann::json& j, UEAuthenticationCtx& o) void from_json(const nlohmann::json& j, UEAuthenticationCtx& o) {
{
j.at("authType").get_to(o.m_AuthType); j.at("authType").get_to(o.m_AuthType);
j.at("5gAuthData").get_to(o.m_r_5gAuthData); j.at("5gAuthData").get_to(o.m_r_5gAuthData);
j.at("_links").get_to(o.m__links); j.at("_links").get_to(o.m__links);
if(j.find("servingNetworkName") != j.end()) if (j.find("servingNetworkName") != j.end()) {
{
j.at("servingNetworkName").get_to(o.m_ServingNetworkName); j.at("servingNetworkName").get_to(o.m_ServingNetworkName);
o.m_ServingNetworkNameIsSet = true; o.m_ServingNetworkNameIsSet = true;
} }
} }
std::string UEAuthenticationCtx::getAuthType() const std::string UEAuthenticationCtx::getAuthType() const {
{
return m_AuthType; return m_AuthType;
} }
void UEAuthenticationCtx::setAuthType(std::string const& value) void UEAuthenticationCtx::setAuthType(std::string const& value) {
{
m_AuthType = value; m_AuthType = value;
} }
Av5gAka UEAuthenticationCtx::getR5gAuthData() const Av5gAka UEAuthenticationCtx::getR5gAuthData() const {
{
return m_r_5gAuthData; return m_r_5gAuthData;
} }
void UEAuthenticationCtx::setR5gAuthData(Av5gAka const& value) void UEAuthenticationCtx::setR5gAuthData(Av5gAka const& value) {
{
m_r_5gAuthData = value; m_r_5gAuthData = value;
} }
std::map<std::string, LinksValueSchema>& UEAuthenticationCtx::getLinks() std::map<std::string, LinksValueSchema>& UEAuthenticationCtx::getLinks() {
{
return m__links; return m__links;
} }
void UEAuthenticationCtx::setLinks(std::map<std::string, LinksValueSchema> const& value) void UEAuthenticationCtx::setLinks(
{ std::map<std::string, LinksValueSchema> const& value) {
m__links = value; m__links = value;
} }
std::string UEAuthenticationCtx::getServingNetworkName() const std::string UEAuthenticationCtx::getServingNetworkName() const {
{
return m_ServingNetworkName; return m_ServingNetworkName;
} }
void UEAuthenticationCtx::setServingNetworkName(std::string const& value) void UEAuthenticationCtx::setServingNetworkName(std::string const& value) {
{
m_ServingNetworkName = value; m_ServingNetworkName = value;
m_ServingNetworkNameIsSet = true; m_ServingNetworkNameIsSet = true;
} }
bool UEAuthenticationCtx::servingNetworkNameIsSet() const bool UEAuthenticationCtx::servingNetworkNameIsSet() const {
{
return m_ServingNetworkNameIsSet; return m_ServingNetworkNameIsSet;
} }
void UEAuthenticationCtx::unsetServingNetworkName() void UEAuthenticationCtx::unsetServingNetworkName() {
{
m_ServingNetworkNameIsSet = false; m_ServingNetworkNameIsSet = false;
} }
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
/** /**
* AUSF API * AUSF API
* AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * AUSF UE Authentication Service. © 2020, 3GPP Organizational Partners (ARIB,
* * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* The version of the OpenAPI document: 1.1.1 *
* * The version of the OpenAPI document: 1.1.1
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). *
* https://openapi-generator.tech * NOTE: This class is auto generated by OpenAPI Generator
* Do not edit the class manually. * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
*/ * the class manually.
*/
/* /*
* UEAuthenticationCtx.h * UEAuthenticationCtx.h
* *
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#ifndef UEAuthenticationCtx_H_ #ifndef UEAuthenticationCtx_H_
#define UEAuthenticationCtx_H_ #define UEAuthenticationCtx_H_
#include "Av5gAka.h" #include "Av5gAka.h"
#include "LinksValueSchema.h" #include "LinksValueSchema.h"
#include "AuthType.h" #include "AuthType.h"
...@@ -35,9 +35,8 @@ namespace model { ...@@ -35,9 +35,8 @@ namespace model {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
class UEAuthenticationCtx class UEAuthenticationCtx {
{ public:
public:
UEAuthenticationCtx(); UEAuthenticationCtx();
virtual ~UEAuthenticationCtx(); virtual ~UEAuthenticationCtx();
...@@ -71,7 +70,8 @@ public: ...@@ -71,7 +70,8 @@ public:
friend void to_json(nlohmann::json& j, const UEAuthenticationCtx& o); friend void to_json(nlohmann::json& j, const UEAuthenticationCtx& o);
friend void from_json(const nlohmann::json& j, UEAuthenticationCtx& o); friend void from_json(const nlohmann::json& j, UEAuthenticationCtx& o);
protected:
protected:
std::string m_AuthType; std::string m_AuthType;
Av5gAka m_r_5gAuthData; Av5gAka m_r_5gAuthData;
...@@ -82,9 +82,9 @@ protected: ...@@ -82,9 +82,9 @@ protected:
bool m_ServingNetworkNameIsSet; bool m_ServingNetworkNameIsSet;
}; };
} } // namespace model
} } // namespace server
} } // namespace openapitools
} } // namespace org
#endif /* UEAuthenticationCtx_H_ */ #endif /* UEAuthenticationCtx_H_ */
...@@ -39,12 +39,11 @@ ...@@ -39,12 +39,11 @@
#include <boost/uuid/uuid_io.hpp> #include <boost/uuid/uuid_io.hpp>
#include <chrono> #include <chrono>
#include "logger.hpp" #include "logger.hpp"
#include "ausf_client.hpp" #include "ausf_client.hpp"
using namespace oai::ausf::app; using namespace oai::ausf::app;
//using namespace oai::ausf::model; // using namespace oai::ausf::model;
using namespace std::chrono; using namespace std::chrono;
extern ausf_app* ausf_app_inst; extern ausf_app* ausf_app_inst;
...@@ -52,14 +51,11 @@ ausf_client* ausf_client_inst = nullptr; ...@@ -52,14 +51,11 @@ ausf_client* ausf_client_inst = nullptr;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
ausf_app::ausf_app(const std::string& config_file) { ausf_app::ausf_app(const std::string& config_file) {
//logger::ausf_server().startup("Starting..."); // logger::ausf_server().startup("Starting...");
//logger::ausf_server().startup("Started"); // logger::ausf_server().startup("Started");
} }
ausf_app::~ausf_app() { ausf_app::~ausf_app() {
// logger::ausf_server().debug("Delete AUSF_APP instance..."); // logger::ausf_server().debug("Delete AUSF_APP instance...");
} }
...@@ -36,7 +36,7 @@ namespace oai { ...@@ -36,7 +36,7 @@ namespace oai {
namespace ausf { namespace ausf {
namespace app { namespace app {
//class ausf_config; // class ausf_config;
class ausf_app { class ausf_app {
public: public:
explicit ausf_app(const std::string& config_file); explicit ausf_app(const std::string& config_file);
...@@ -45,9 +45,7 @@ class ausf_app { ...@@ -45,9 +45,7 @@ class ausf_app {
virtual ~ausf_app(); virtual ~ausf_app();
private: private:
}; };
} // namespace app } // namespace app
} // namespace ausf } // namespace ausf
......
...@@ -55,12 +55,9 @@ static std::size_t callback( ...@@ -55,12 +55,9 @@ static std::size_t callback(
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
ausf_client::ausf_client() { ausf_client::ausf_client() {}
}
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
ausf_client::~ausf_client() { ausf_client::~ausf_client() {
Logger::ausf_server().debug("Delete AUSF Client instance..."); Logger::ausf_server().debug("Delete AUSF Client instance...");
} }
...@@ -40,14 +40,11 @@ namespace app { ...@@ -40,14 +40,11 @@ namespace app {
class ausf_client { class ausf_client {
private: private:
public: public:
ausf_client(); ausf_client();
virtual ~ausf_client(); virtual ~ausf_client();
ausf_client(ausf_client const&) = delete; ausf_client(ausf_client const&) = delete;
}; };
} // namespace app } // namespace app
} // namespace ausf } // namespace ausf
......
...@@ -35,8 +35,8 @@ email: contact@openairinterface.org ...@@ -35,8 +35,8 @@ email: contact@openairinterface.org
#include "logger.hpp" #include "logger.hpp"
using namespace std; using namespace std;
void print_buffer(const string app, const string commit, uint8_t *buf, void print_buffer(
int len) { const string app, const string commit, uint8_t* buf, int len) {
if (!app.compare("ausf_server")) cout << commit.c_str() << endl; if (!app.compare("ausf_server")) cout << commit.c_str() << endl;
Logger::ausf_server().debug(commit.c_str()); Logger::ausf_server().debug(commit.c_str());
...@@ -44,7 +44,7 @@ void print_buffer(const string app, const string commit, uint8_t *buf, ...@@ -44,7 +44,7 @@ void print_buffer(const string app, const string commit, uint8_t *buf,
printf("\n"); printf("\n");
} }
void hexStr2Byte(const char *src, unsigned char *dest, int len) { void hexStr2Byte(const char* src, unsigned char* dest, int len) {
short i; short i;
unsigned char hBy, lBy; unsigned char hBy, lBy;
for (i = 0; i < len; i += 2) { for (i = 0; i < len; i += 2) {
......
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <stdint.h> #include <stdint.h>
#define RETURNclear (int)2 #define RETURNclear (int) 2
#define RETURNerror (int)1 #define RETURNerror (int) 1
#define RETURNok (int)0 #define RETURNok (int) 0
typedef enum { typedef enum {
/* Fatal errors - received message should not be processed */ /* Fatal errors - received message should not be processed */
...@@ -60,19 +60,19 @@ typedef enum { ...@@ -60,19 +60,19 @@ typedef enum {
} error_code_e; } error_code_e;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#define DECODE_U8(bUFFER, vALUE, sIZE) \ #define DECODE_U8(bUFFER, vALUE, sIZE) \
vALUE = *(uint8_t *)(bUFFER); \ vALUE = *(uint8_t*) (bUFFER); \
sIZE += sizeof(uint8_t) sIZE += sizeof(uint8_t)
#define DECODE_U16(bUFFER, vALUE, sIZE) \ #define DECODE_U16(bUFFER, vALUE, sIZE) \
vALUE = ntohs(*(uint16_t *)(bUFFER)); \ vALUE = ntohs(*(uint16_t*) (bUFFER)); \
sIZE += sizeof(uint16_t) sIZE += sizeof(uint16_t)
#define DECODE_U24(bUFFER, vALUE, sIZE) \ #define DECODE_U24(bUFFER, vALUE, sIZE) \
vALUE = ntohl(*(uint32_t *)(bUFFER)) >> 8; \ vALUE = ntohl(*(uint32_t*) (bUFFER)) >> 8; \
sIZE += sizeof(uint8_t) + sizeof(uint16_t) sIZE += sizeof(uint8_t) + sizeof(uint16_t)
#define DECODE_U32(bUFFER, vALUE, sIZE) \ #define DECODE_U32(bUFFER, vALUE, sIZE) \
vALUE = ntohl(*(uint32_t *)(bUFFER)); \ vALUE = ntohl(*(uint32_t*) (bUFFER)); \
sIZE += sizeof(uint32_t) sIZE += sizeof(uint32_t)
#if (BYTE_ORDER == LITTLE_ENDIAN) #if (BYTE_ORDER == LITTLE_ENDIAN)
...@@ -86,19 +86,19 @@ typedef enum { ...@@ -86,19 +86,19 @@ typedef enum {
#endif #endif
#define ENCODE_U8(buffer, value, size) \ #define ENCODE_U8(buffer, value, size) \
*(uint8_t *)(buffer) = value; \ *(uint8_t*) (buffer) = value; \
size += sizeof(uint8_t) size += sizeof(uint8_t)
#define ENCODE_U16(buffer, value, size) \ #define ENCODE_U16(buffer, value, size) \
*(uint16_t *)(buffer) = htons(value); \ *(uint16_t*) (buffer) = htons(value); \
size += sizeof(uint16_t) size += sizeof(uint16_t)
#define ENCODE_U24(buffer, value, size) \ #define ENCODE_U24(buffer, value, size) \
*(uint32_t *)(buffer) = htonl(value); \ *(uint32_t*) (buffer) = htonl(value); \
size += sizeof(uint8_t) + sizeof(uint16_t) size += sizeof(uint8_t) + sizeof(uint16_t)
#define ENCODE_U32(buffer, value, size) \ #define ENCODE_U32(buffer, value, size) \
*(uint32_t *)(buffer) = htonl(value); \ *(uint32_t*) (buffer) = htonl(value); \
size += sizeof(uint32_t) size += sizeof(uint32_t)
#define IPV4_STR_ADDR_TO_INT_NWBO(AdDr_StR, NwBo, MeSsAgE) \ #define IPV4_STR_ADDR_TO_INT_NWBO(AdDr_StR, NwBo, MeSsAgE) \
...@@ -127,14 +127,14 @@ typedef enum { ...@@ -127,14 +127,14 @@ typedef enum {
ntohs((addr)->s6_addr16[6]), ntohs((addr)->s6_addr16[7]) ntohs((addr)->s6_addr16[6]), ntohs((addr)->s6_addr16[7])
#define IN6_ARE_ADDR_MASKED_EQUAL(a, b, m) \ #define IN6_ARE_ADDR_MASKED_EQUAL(a, b, m) \
(((((__const uint32_t *)(a))[0] & (((__const uint32_t *)(m))[0])) == \ (((((__const uint32_t*) (a))[0] & (((__const uint32_t*) (m))[0])) == \
(((__const uint32_t *)(b))[0] & (((__const uint32_t *)(m))[0]))) && \ (((__const uint32_t*) (b))[0] & (((__const uint32_t*) (m))[0]))) && \
((((__const uint32_t *)(a))[1] & (((__const uint32_t *)(m))[1])) == \ ((((__const uint32_t*) (a))[1] & (((__const uint32_t*) (m))[1])) == \
(((__const uint32_t *)(b))[1] & (((__const uint32_t *)(m))[1]))) && \ (((__const uint32_t*) (b))[1] & (((__const uint32_t*) (m))[1]))) && \
((((__const uint32_t *)(a))[2] & (((__const uint32_t *)(m))[2])) == \ ((((__const uint32_t*) (a))[2] & (((__const uint32_t*) (m))[2])) == \
(((__const uint32_t *)(b))[2] & (((__const uint32_t *)(m))[2]))) && \ (((__const uint32_t*) (b))[2] & (((__const uint32_t*) (m))[2]))) && \
((((__const uint32_t *)(a))[3] & (((__const uint32_t *)(m))[3])) == \ ((((__const uint32_t*) (a))[3] & (((__const uint32_t*) (m))[3])) == \
(((__const uint32_t *)(b))[3] & (((__const uint32_t *)(m))[3])))) (((__const uint32_t*) (b))[3] & (((__const uint32_t*) (m))[3]))))
//////////// ////////////
#define IPV4_STR_ADDR_TO_INADDR(AdDr_StR, InAdDr, MeSsAgE) \ #define IPV4_STR_ADDR_TO_INADDR(AdDr_StR, InAdDr, MeSsAgE) \
...@@ -145,7 +145,7 @@ typedef enum { ...@@ -145,7 +145,7 @@ typedef enum {
} while (0) } while (0)
#ifndef UNUSED #ifndef UNUSED
#define UNUSED(x) (void)(x) #define UNUSED(x) (void) (x)
#endif #endif
#endif /* FILE_COMMON_DEFS_SEEN */ #endif /* FILE_COMMON_DEFS_SEEN */
...@@ -59,7 +59,7 @@ static const signed char ascii_to_hex_table[0x100] = { ...@@ -59,7 +59,7 @@ static const signed char ascii_to_hex_table[0x100] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1}; -1, -1, -1, -1, -1, -1, -1, -1, -1};
void conv::hexa_to_ascii(uint8_t *from, char *to, size_t length) { void conv::hexa_to_ascii(uint8_t* from, char* to, size_t length) {
size_t i; size_t i;
for (i = 0; i < length; i++) { for (i = 0; i < length; i++) {
...@@ -71,8 +71,8 @@ void conv::hexa_to_ascii(uint8_t *from, char *to, size_t length) { ...@@ -71,8 +71,8 @@ void conv::hexa_to_ascii(uint8_t *from, char *to, size_t length) {
} }
} }
int conv::ascii_to_hex(uint8_t *dst, const char *h) { int conv::ascii_to_hex(uint8_t* dst, const char* h) {
const unsigned char *hex = (const unsigned char *)h; const unsigned char* hex = (const unsigned char*) h;
unsigned i = 0; unsigned i = 0;
for (;;) { for (;;) {
...@@ -99,8 +99,8 @@ int conv::ascii_to_hex(uint8_t *dst, const char *h) { ...@@ -99,8 +99,8 @@ int conv::ascii_to_hex(uint8_t *dst, const char *h) {
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
std::string conv::mccToString(const uint8_t digit1, const uint8_t digit2, std::string conv::mccToString(
const uint8_t digit3) { const uint8_t digit1, const uint8_t digit2, const uint8_t digit3) {
std::string s = {}; std::string s = {};
uint16_t mcc16 = digit1 * 100 + digit2 * 10 + digit3; uint16_t mcc16 = digit1 * 100 + digit2 * 10 + digit3;
// s.append(std::to_string(digit1)).append(std::to_string(digit2)).append(std::to_string(digit3)); // s.append(std::to_string(digit1)).append(std::to_string(digit2)).append(std::to_string(digit3));
...@@ -108,8 +108,8 @@ std::string conv::mccToString(const uint8_t digit1, const uint8_t digit2, ...@@ -108,8 +108,8 @@ std::string conv::mccToString(const uint8_t digit1, const uint8_t digit2,
return s; return s;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
std::string conv::mncToString(const uint8_t digit1, const uint8_t digit2, std::string conv::mncToString(
const uint8_t digit3) { const uint8_t digit1, const uint8_t digit2, const uint8_t digit3) {
std::string s = {}; std::string s = {};
uint16_t mcc16 = 0; uint16_t mcc16 = 0;
...@@ -126,14 +126,14 @@ std::string conv::mncToString(const uint8_t digit1, const uint8_t digit2, ...@@ -126,14 +126,14 @@ std::string conv::mncToString(const uint8_t digit1, const uint8_t digit2,
struct in_addr conv::fromString(const std::string addr4) { struct in_addr conv::fromString(const std::string addr4) {
unsigned char buf[sizeof(struct in6_addr)] = {}; unsigned char buf[sizeof(struct in6_addr)] = {};
int s = inet_pton(AF_INET, addr4.c_str(), buf); int s = inet_pton(AF_INET, addr4.c_str(), buf);
struct in_addr *ia = (struct in_addr *)buf; struct in_addr* ia = (struct in_addr*) buf;
return *ia; return *ia;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
std::string conv::toString(const struct in_addr &inaddr) { std::string conv::toString(const struct in_addr& inaddr) {
std::string s = {}; std::string s = {};
char str[INET6_ADDRSTRLEN] = {}; char str[INET6_ADDRSTRLEN] = {};
if (inet_ntop(AF_INET, (const void *)&inaddr, str, INET6_ADDRSTRLEN) == if (inet_ntop(AF_INET, (const void*) &inaddr, str, INET6_ADDRSTRLEN) ==
NULL) { NULL) {
s.append("Error in_addr"); s.append("Error in_addr");
} else { } else {
...@@ -142,10 +142,10 @@ std::string conv::toString(const struct in_addr &inaddr) { ...@@ -142,10 +142,10 @@ std::string conv::toString(const struct in_addr &inaddr) {
return s; return s;
} }
std::string conv::toString(const struct in6_addr &in6addr) { std::string conv::toString(const struct in6_addr& in6addr) {
std::string s = {}; std::string s = {};
char str[INET6_ADDRSTRLEN] = {}; char str[INET6_ADDRSTRLEN] = {};
if (inet_ntop(AF_INET6, (const void *)&in6addr, str, INET6_ADDRSTRLEN) == if (inet_ntop(AF_INET6, (const void*) &in6addr, str, INET6_ADDRSTRLEN) ==
nullptr) { nullptr) {
s.append("Error in6_addr"); s.append("Error in6_addr");
} else { } else {
...@@ -155,8 +155,8 @@ std::string conv::toString(const struct in6_addr &in6addr) { ...@@ -155,8 +155,8 @@ std::string conv::toString(const struct in6_addr &in6addr) {
} }
//------------------------------from //------------------------------from
//udm------------------------------------------------ // udm------------------------------------------------
std::string conv::uint8_to_hex_string(const uint8_t *v, const size_t s) { std::string conv::uint8_to_hex_string(const uint8_t* v, const size_t s) {
std::stringstream ss; std::stringstream ss;
ss << std::hex << std::setfill('0'); ss << std::hex << std::setfill('0');
...@@ -168,7 +168,7 @@ std::string conv::uint8_to_hex_string(const uint8_t *v, const size_t s) { ...@@ -168,7 +168,7 @@ std::string conv::uint8_to_hex_string(const uint8_t *v, const size_t s) {
return ss.str(); return ss.str();
} }
void conv::hex_str_to_uint8(const char *string, uint8_t *des) { void conv::hex_str_to_uint8(const char* string, uint8_t* des) {
if (string == NULL) return; if (string == NULL) return;
size_t slength = strlen(string); size_t slength = strlen(string);
......
...@@ -46,16 +46,16 @@ ...@@ -46,16 +46,16 @@
class conv { class conv {
public: public:
static void hexa_to_ascii(uint8_t *from, char *to, size_t length); static void hexa_to_ascii(uint8_t* from, char* to, size_t length);
static int ascii_to_hex(uint8_t *dst, const char *h); static int ascii_to_hex(uint8_t* dst, const char* h);
static struct in_addr fromString(const std::string addr4); static struct in_addr fromString(const std::string addr4);
static std::string toString(const struct in_addr &inaddr); static std::string toString(const struct in_addr& inaddr);
static std::string toString(const struct in6_addr &in6addr); static std::string toString(const struct in6_addr& in6addr);
static std::string mccToString(const uint8_t digit1, const uint8_t digit2, static std::string mccToString(
const uint8_t digit3); const uint8_t digit1, const uint8_t digit2, const uint8_t digit3);
static std::string mncToString(const uint8_t digit1, const uint8_t digit2, static std::string mncToString(
const uint8_t digit3); const uint8_t digit1, const uint8_t digit2, const uint8_t digit3);
static std::string uint8_to_hex_string(const uint8_t *v, const size_t s); static std::string uint8_to_hex_string(const uint8_t* v, const size_t s);
static void hex_str_to_uint8(const char *string, uint8_t *des); static void hex_str_to_uint8(const char* string, uint8_t* des);
}; };
#endif /* FILE_CONVERSIONS_HPP_SEEN */ #endif /* FILE_CONVERSIONS_HPP_SEEN */
...@@ -42,12 +42,12 @@ class endpoint { ...@@ -42,12 +42,12 @@ class endpoint {
socklen_t addr_storage_len; socklen_t addr_storage_len;
endpoint() endpoint()
: addr_storage(), addr_storage_len(sizeof(struct sockaddr_storage)){}; : addr_storage(), addr_storage_len(sizeof(struct sockaddr_storage)){};
endpoint(const endpoint &e) endpoint(const endpoint& e)
: addr_storage(e.addr_storage), addr_storage_len(e.addr_storage_len){}; : addr_storage(e.addr_storage), addr_storage_len(e.addr_storage_len){};
endpoint(const struct sockaddr_storage &addr, const socklen_t len) endpoint(const struct sockaddr_storage& addr, const socklen_t len)
: addr_storage(addr), addr_storage_len(len){}; : addr_storage(addr), addr_storage_len(len){};
endpoint(const struct in_addr &addr, const uint16_t port) { endpoint(const struct in_addr& addr, const uint16_t port) {
struct sockaddr_in *addr_in = (struct sockaddr_in *)&addr_storage; struct sockaddr_in* addr_in = (struct sockaddr_in*) &addr_storage;
addr_in->sin_family = AF_INET; addr_in->sin_family = AF_INET;
addr_in->sin_port = htons(port); addr_in->sin_port = htons(port);
addr_in->sin_addr.s_addr = addr.s_addr; addr_in->sin_addr.s_addr = addr.s_addr;
...@@ -55,8 +55,8 @@ class endpoint { ...@@ -55,8 +55,8 @@ class endpoint {
addr_storage_len = sizeof(struct sockaddr_in); addr_storage_len = sizeof(struct sockaddr_in);
}; };
endpoint(const struct in6_addr &addr6, const uint16_t port) { endpoint(const struct in6_addr& addr6, const uint16_t port) {
struct sockaddr_in6 *addr_in6 = (struct sockaddr_in6 *)&addr_storage; struct sockaddr_in6* addr_in6 = (struct sockaddr_in6*) &addr_storage;
addr_in6->sin6_family = AF_INET6; addr_in6->sin6_family = AF_INET6;
addr_in6->sin6_port = htons(port); addr_in6->sin6_port = htons(port);
addr_in6->sin6_flowinfo = 0; addr_in6->sin6_flowinfo = 0;
...@@ -67,7 +67,7 @@ class endpoint { ...@@ -67,7 +67,7 @@ class endpoint {
}; };
uint16_t port() const { uint16_t port() const {
return ntohs(((struct sockaddr_in *)&addr_storage)->sin_port); return ntohs(((struct sockaddr_in*) &addr_storage)->sin_port);
} }
sa_family_t family() const { return addr_storage.ss_family; } sa_family_t family() const { return addr_storage.ss_family; }
...@@ -75,11 +75,11 @@ class endpoint { ...@@ -75,11 +75,11 @@ class endpoint {
std::string toString() const { std::string toString() const {
std::string str; std::string str;
if (addr_storage.ss_family == AF_INET) { if (addr_storage.ss_family == AF_INET) {
struct sockaddr_in *addr_in = (struct sockaddr_in *)&addr_storage; struct sockaddr_in* addr_in = (struct sockaddr_in*) &addr_storage;
str.append(conv::toString(addr_in->sin_addr)); str.append(conv::toString(addr_in->sin_addr));
str.append(":").append(std::to_string(ntohs(addr_in->sin_port))); str.append(":").append(std::to_string(ntohs(addr_in->sin_port)));
} else if (addr_storage.ss_family == AF_INET6) { } else if (addr_storage.ss_family == AF_INET6) {
struct sockaddr_in6 *addr_in6 = (struct sockaddr_in6 *)&addr_storage; struct sockaddr_in6* addr_in6 = (struct sockaddr_in6*) &addr_storage;
str.append(conv::toString(addr_in6->sin6_addr)); str.append(conv::toString(addr_in6->sin6_addr));
str.append(":").append(std::to_string(ntohs(addr_in6->sin6_port))); str.append(":").append(std::to_string(ntohs(addr_in6->sin6_port)));
} }
......
This diff is collapsed.
...@@ -12,7 +12,7 @@ extern "C" { ...@@ -12,7 +12,7 @@ extern "C" {
#endif #endif
typedef struct ANY { typedef struct ANY {
uint8_t *buf; /* BER-encoded ANY contents */ uint8_t* buf; /* BER-encoded ANY contents */
int size; /* Size of the above buffer */ int size; /* Size of the above buffer */
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
...@@ -45,14 +45,14 @@ per_type_encoder_f ANY_encode_aper; ...@@ -45,14 +45,14 @@ per_type_encoder_f ANY_encode_aper;
******************************/ ******************************/
/* Convert another ASN.1 type into the ANY. This implies DER encoding. */ /* Convert another ASN.1 type into the ANY. This implies DER encoding. */
int ANY_fromType(ANY_t *, asn_TYPE_descriptor_t *td, void *struct_ptr); int ANY_fromType(ANY_t*, asn_TYPE_descriptor_t* td, void* struct_ptr);
int ANY_fromType_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr); int ANY_fromType_aper(ANY_t* st, asn_TYPE_descriptor_t* td, void* sptr);
ANY_t *ANY_new_fromType(asn_TYPE_descriptor_t *td, void *struct_ptr); ANY_t* ANY_new_fromType(asn_TYPE_descriptor_t* td, void* struct_ptr);
ANY_t *ANY_new_fromType_aper(asn_TYPE_descriptor_t *td, void *sptr); ANY_t* ANY_new_fromType_aper(asn_TYPE_descriptor_t* td, void* sptr);
/* Convert the contents of the ANY type into the specified type. */ /* Convert the contents of the ANY type into the specified type. */
int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr); int ANY_to_type(ANY_t*, asn_TYPE_descriptor_t* td, void** struct_ptr);
int ANY_to_type_aper(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr); int ANY_to_type_aper(ANY_t*, asn_TYPE_descriptor_t* td, void** struct_ptr);
#define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size)) #define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size))
#define ANY_new_fromBuf(buf, size) \ #define ANY_new_fromBuf(buf, size) \
......
This diff is collapsed.
...@@ -12,7 +12,7 @@ extern "C" { ...@@ -12,7 +12,7 @@ extern "C" {
#endif #endif
typedef struct BIT_STRING_s { typedef struct BIT_STRING_s {
uint8_t *buf; /* BIT STRING body */ uint8_t* buf; /* BIT STRING body */
size_t size; /* Size of the above buffer */ size_t size; /* Size of the above buffer */
int bits_unused; /* Unused trailing bits in the last octet (0..7) */ int bits_unused; /* Unused trailing bits in the last octet (0..7) */
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -14,7 +14,7 @@ extern "C" { ...@@ -14,7 +14,7 @@ extern "C" {
#endif #endif
typedef uint32_t asn_oid_arc_t; typedef uint32_t asn_oid_arc_t;
#define ASN_OID_ARC_MAX (~((asn_oid_arc_t)0)) #define ASN_OID_ARC_MAX (~((asn_oid_arc_t) 0))
typedef ASN__PRIMITIVE_TYPE_t OBJECT_IDENTIFIER_t; typedef ASN__PRIMITIVE_TYPE_t OBJECT_IDENTIFIER_t;
...@@ -80,8 +80,8 @@ asn_random_fill_f OBJECT_IDENTIFIER_random_fill; ...@@ -80,8 +80,8 @@ asn_random_fill_f OBJECT_IDENTIFIER_random_fill;
* WARNING: The function always returns the actual number of arcs, * WARNING: The function always returns the actual number of arcs,
* even if there is no sufficient (arc_slots) provided. * even if there is no sufficient (arc_slots) provided.
*/ */
ssize_t OBJECT_IDENTIFIER_get_arcs(const OBJECT_IDENTIFIER_t *oid, ssize_t OBJECT_IDENTIFIER_get_arcs(
asn_oid_arc_t *arcs, size_t arc_slots); const OBJECT_IDENTIFIER_t* oid, asn_oid_arc_t* arcs, size_t arc_slots);
/* /*
* This functions initializes the OBJECT IDENTIFIER object with * This functions initializes the OBJECT IDENTIFIER object with
...@@ -93,8 +93,8 @@ ssize_t OBJECT_IDENTIFIER_get_arcs(const OBJECT_IDENTIFIER_t *oid, ...@@ -93,8 +93,8 @@ ssize_t OBJECT_IDENTIFIER_get_arcs(const OBJECT_IDENTIFIER_t *oid,
* -1/ENOMEM: Memory allocation failed * -1/ENOMEM: Memory allocation failed
* 0: The object was initialized with new arcs. * 0: The object was initialized with new arcs.
*/ */
int OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid, int OBJECT_IDENTIFIER_set_arcs(
const asn_oid_arc_t *arcs, size_t arcs_count); OBJECT_IDENTIFIER_t* oid, const asn_oid_arc_t* arcs, size_t arcs_count);
/* /*
* Parse the OBJECT IDENTIFIER textual representation ("1.3.6.1.4.1.9363"). * Parse the OBJECT IDENTIFIER textual representation ("1.3.6.1.4.1.9363").
...@@ -117,10 +117,9 @@ int OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid, ...@@ -117,10 +117,9 @@ int OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *oid,
* even if there is no sufficient (arc_slots) provided. * even if there is no sufficient (arc_slots) provided.
* This is useful for (arc_slots) value estimation. * This is useful for (arc_slots) value estimation.
*/ */
ssize_t OBJECT_IDENTIFIER_parse_arcs(const char *oid_text, ssize_t OBJECT_IDENTIFIER_parse_arcs(
ssize_t oid_txt_length, const char* oid_text, ssize_t oid_txt_length, asn_oid_arc_t* arcs,
asn_oid_arc_t *arcs, size_t arcs_count, size_t arcs_count, const char** opt_oid_text_end);
const char **opt_oid_text_end);
/* /*
* Internal functions. * Internal functions.
...@@ -133,9 +132,8 @@ ssize_t OBJECT_IDENTIFIER_parse_arcs(const char *oid_text, ...@@ -133,9 +132,8 @@ ssize_t OBJECT_IDENTIFIER_parse_arcs(const char *oid_text,
* -1: Failed to retrieve the value from the (arcbuf). * -1: Failed to retrieve the value from the (arcbuf).
* >0: Number of bytes consumed from the (arcbuf), <= (arcbuf_len). * >0: Number of bytes consumed from the (arcbuf), <= (arcbuf_len).
*/ */
ssize_t OBJECT_IDENTIFIER_get_single_arc(const uint8_t *arcbuf, ssize_t OBJECT_IDENTIFIER_get_single_arc(
size_t arcbuf_len, const uint8_t* arcbuf, size_t arcbuf_len, asn_oid_arc_t* ret_value);
asn_oid_arc_t *ret_value);
/* /*
* Write the unterminated arc value into the (arcbuf) which has the size at * Write the unterminated arc value into the (arcbuf) which has the size at
...@@ -144,8 +142,8 @@ ssize_t OBJECT_IDENTIFIER_get_single_arc(const uint8_t *arcbuf, ...@@ -144,8 +142,8 @@ ssize_t OBJECT_IDENTIFIER_get_single_arc(const uint8_t *arcbuf,
* -1: (arcbuf_len) size is not sufficient to write the value. * -1: (arcbuf_len) size is not sufficient to write the value.
* <n>: Number of bytes appended to the arcbuf (<= arcbuf_len). * <n>: Number of bytes appended to the arcbuf (<= arcbuf_len).
*/ */
ssize_t OBJECT_IDENTIFIER_set_single_arc(uint8_t *arcbuf, size_t arcbuf_len, ssize_t OBJECT_IDENTIFIER_set_single_arc(
asn_oid_arc_t arc_value); uint8_t* arcbuf, size_t arcbuf_len, asn_oid_arc_t arc_value);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment