Commit abbadb7b authored by yangjian's avatar yangjian

update json parse rand\auts

parent 2c5aefe9
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
#include "ResynchronizationInfo.h"
namespace oai {
namespace amf {
namespace model {
ResynchronizationInfo::ResynchronizationInfo()
{
m_Rand = "";
m_Auts = "";
}
ResynchronizationInfo::~ResynchronizationInfo()
{
}
void ResynchronizationInfo::validate()
{
// TODO: implement validation
}
void to_json(nlohmann::json& j, const ResynchronizationInfo& o)
{
j = nlohmann::json();
j["rand"] = o.m_Rand;
j["auts"] = o.m_Auts;
}
void from_json(const nlohmann::json& j, ResynchronizationInfo& o)
{
j.at("rand").get_to(o.m_Rand);
j.at("auts").get_to(o.m_Auts);
}
std::string ResynchronizationInfo::getRand() const
{
return m_Rand;
}
void ResynchronizationInfo::setRand(std::string const& value)
{
m_Rand = value;
}
std::string ResynchronizationInfo::getAuts() const
{
return m_Auts;
}
void ResynchronizationInfo::setAuts(std::string const& value)
{
m_Auts = value;
}
}
}
}
/**
* AUSF API
* 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
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/*
* ResynchronizationInfo.h
*
*
*/
#ifndef ResynchronizationInfo_H_
#define ResynchronizationInfo_H_
#include <string>
#include <nlohmann/json.hpp>
namespace oai {
namespace amf {
namespace model {
/// <summary>
///
/// </summary>
class ResynchronizationInfo
{
public:
ResynchronizationInfo();
virtual ~ResynchronizationInfo();
void validate();
/////////////////////////////////////////////
/// ResynchronizationInfo members
/// <summary>
///
/// </summary>
std::string getRand() const;
void setRand(std::string const& value);
/// <summary>
///
/// </summary>
std::string getAuts() const;
void setAuts(std::string const& value);
friend void to_json(nlohmann::json& j, const ResynchronizationInfo& o);
friend void from_json(const nlohmann::json& j, ResynchronizationInfo& o);
protected:
std::string m_Rand;
std::string m_Auts;
};
}
}
}
#endif /* ResynchronizationInfo_H_ */
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