Commit 90c71577 authored by Stefan Spettel's avatar Stefan Spettel

feat(smf): Add getFirstFlowDescription function in PCCRule

Signed-off-by: default avatarStefan Spettel <stefan.spettel@eurecom.fr>
parent 12660a66
...@@ -732,6 +732,16 @@ void PccRule::unsetTscaiInputUl() { ...@@ -732,6 +732,16 @@ void PccRule::unsetTscaiInputUl() {
} }
*/ */
std::string PccRule::getFirstFlowDescription() const {
std::string flow = "";
if (flowInfosIsSet() && getFlowInfos().size() > 0) {
if (getFlowInfos()[0].flowDescriptionIsSet()) {
flow = getFlowInfos()[0].getFlowDescription();
}
}
return flow;
}
} // namespace model } // namespace model
} // namespace smf_server } // namespace smf_server
} // namespace oai } // namespace oai
...@@ -210,6 +210,8 @@ class PccRule { ...@@ -210,6 +210,8 @@ class PccRule {
void unsetTscaiInputUl(); void unsetTscaiInputUl();
*/ */
std::string getFirstFlowDescription() const;
friend void to_json(nlohmann::json& j, const PccRule& o); friend void to_json(nlohmann::json& j, const PccRule& o);
friend void from_json(const nlohmann::json& j, PccRule& o); friend void from_json(const nlohmann::json& j, PccRule& o);
......
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