Commit 110b9d05 authored by YannGarcia's avatar YannGarcia
Browse files

Finalyze typing for MEC028

parent 77f7c526
......@@ -433,6 +433,21 @@ int json_codec::decode (const OCTETSTRING& p_data, LibItsHttp__JsonMessageBodyTy
TTCN_Buffer decoding_buffer_(OCTETSTRING(str.length(), (const unsigned char*)str.c_str()));
predicted_qos.decode(V2XInformationServiceAPI__TypesAndValues::PredictedQos_descr_, decoding_buffer_, TTCN_EncDec::CT_JSON);
msg.predictedQos() = predicted_qos;
} else if ((it->second.find("\"provChgUuUniSubscription\"") != std::string::npos) || (it->second.find("\"v2xApplicationServer\"") != std::string::npos)) {
V2XInformationServiceAPI__TypesAndValues::ProvChgUuUniSubscription prov_chg_uu_uni_subscription;
TTCN_Buffer decoding_buffer_(OCTETSTRING(str.length(), (const unsigned char*)str.c_str()));
prov_chg_uu_uni_subscription.decode(V2XInformationServiceAPI__TypesAndValues::ProvChgUuUniSubscription_descr_, decoding_buffer_, TTCN_EncDec::CT_JSON);
msg.provChgUuUniSubscription() = prov_chg_uu_uni_subscription;
} else if ((it->second.find("\"provChgUuMbmsSubscription\"") != std::string::npos) || (it->second.find("\"v2xApplicationServer\"") != std::string::npos)) {
V2XInformationServiceAPI__TypesAndValues::ProvChgUuMbmsSubscription prov_chg_uu_mbms_subscription;
TTCN_Buffer decoding_buffer_(OCTETSTRING(str.length(), (const unsigned char*)str.c_str()));
prov_chg_uu_mbms_subscription.decode(V2XInformationServiceAPI__TypesAndValues::ProvChgUuMbmsSubscription_descr_, decoding_buffer_, TTCN_EncDec::CT_JSON);
msg.provChgUuMbmsSubscription() = prov_chg_uu_mbms_subscription;
} else if ((it->second.find("\"provChgPc5Subscription\"") != std::string::npos) || (it->second.find("\"v2xApplicationServer\"") != std::string::npos)) {
V2XInformationServiceAPI__TypesAndValues::ProvChgPc5Subscription prov_chg_pc5_subscription;
TTCN_Buffer decoding_buffer_(OCTETSTRING(str.length(), (const unsigned char*)str.c_str()));
prov_chg_pc5_subscription.decode(V2XInformationServiceAPI__TypesAndValues::ProvChgPc5Subscription_descr_, decoding_buffer_, TTCN_EncDec::CT_JSON);
msg.provChgPc5Subscription() = prov_chg_pc5_subscription;
} else if (it->second.find("\"detail\"") != std::string::npos) {
LibMec__TypesAndValues::ProblemDetails problem_details;
problem_details.decode(LibMec__TypesAndValues::ProblemDetails_descr_, decoding_buffer, TTCN_EncDec::CT_JSON);
......
This diff is collapsed.
......@@ -3,4 +3,5 @@ sources := \
ttcn/WlanInformationAPI_Pics.ttcn \
ttcn/WlanInformationAPI_Pixits.ttcn \
ttcn/WlanInformationAPI_Templates.ttcn \
ttcn/WlanInformationAPI_Functions.ttcn
module WlanInformationAPI_Functions {
} // End of module WlanInformationAPI_Functions
/**
* @author ETSI / STF569
* @version $URL$
* $ID:$
* @desc This module provides the custom templates for ITS HTTP based protocols.
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*/
* @author ETSI / STF569
* @version $URL$
* $ID:$
* @desc This module provides the custom templates for ITS HTTP based protocols.
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*/
module LibItsHttp_JsonTemplates {
// LibMec
......@@ -992,6 +992,90 @@ group ams_api {
pc5ProvisioningInfo := p_pc5ProvisioningInfo
} // End of template mw_body_json_pc5_provisioning_info
template (value) JsonBody m_body_json_v2x_predicted_qos(
in template (value) PredictedQos p_predicted_qos
) := {
predictedQos := p_predicted_qos
} // End of template m_body_json_v2x_predicted_qos
template (present) JsonBody mw_body_json_v2x_predicted_qos(
template (present) PredictedQos p_predicted_qos := ?
) := {
predictedQos := p_predicted_qos
} // End of template mw_body_json_v2x_predicted_qos
template (value) JsonBody m_body_json_v2x_message(
in template (value) V2xMsgPublication p_message
) := {
v2xMsgPublication := p_message
} // End of template m_body_json_v2x_message
template (present) JsonBody mw_body_json_v2x_message(
template (present) V2xMsgPublication p_message := ?
) := {
v2xMsgPublication := p_message
} // End of template mw_body_json_v2x_message
template (value) JsonBody m_body_json_subscription_links_list(
in template (value) SubscriptionLinksList p_subscription_links_list
) := {
subscriptionLinksList := p_subscription_links_list
} // End of template m_body_json_subscription_links_list
template (present) JsonBody mw_body_json_subscription_links_list(
template (present) SubscriptionLinksList p_subscription_links_list := ?
) := {
subscriptionLinksList := p_subscription_links_list
} // End of template mw_body_json_subscription_links_list
template (value) JsonBody m_body_json_prov_chg_uu_uni_subscription(
in template (value) ProvChgUuUniSubscription p_provChgUuUniSubscription
) := {
provChgUuUniSubscription := p_provChgUuUniSubscription
} // End of template m_body_json_prov_chg_uu_uni_subscription
template (present) JsonBody mw_body_json_prov_chg_uu_uni_subscription(
template (present) ProvChgUuUniSubscription p_provChgUuUniSubscription := ?
) := {
provChgUuUniSubscription := p_provChgUuUniSubscription
} // End of template mw_body_json_prov_uu_uni_subscription
template (value) JsonBody m_body_json_prov_chg_uu_mbms_subscription(
in template (value) ProvChgUuMbmsSubscription p_provChgUuMbmsSubscription
) := {
provChgUuMbmsSubscription := p_provChgUuMbmsSubscription
} // End of template m_body_json_prov_chg_uu_mbms_subscription
template (present) JsonBody mw_body_json_prov_chg_uu_mbms_subscription(
template (present) ProvChgUuMbmsSubscription p_provChgUuMbmsSubscription := ?
) := {
provChgUuMbmsSubscription := p_provChgUuMbmsSubscription
} // End of template mw_body_json_prov_uu_mbms_subscription
template (value) JsonBody m_body_json_prov_chg_pc5_subscription(
in template (value) ProvChgPc5Subscription p_provChgPc5Subscription
) := {
provChgPc5Subscription := p_provChgPc5Subscription
} // End of template m_body_json_prov_chg_pc5_subscription
template (present) JsonBody mw_body_json_prov_chg_pc5_subscription(
template (present) ProvChgPc5Subscription p_provChgPc5Subscription := ?
) := {
provChgPc5Subscription := p_provChgPc5Subscription
} // End of template mw_body_json_prov_pc5_subscription
template (value) JsonBody m_body_json_v2x_msg_subscription(
in template (value) V2xMsgSubscription p_v2xMsgSubscription
) := {
v2xMsgSubscription := p_v2xMsgSubscription
} // End of template m_body_json_v2x_msg_subscription
template (present) JsonBody mw_body_json_v2x_msg_subscription(
template (present) V2xMsgSubscription p_v2xMsgSubscription := ?
) := {
v2xMsgSubscription := p_v2xMsgSubscription
} // End of template mw_body_json_v2x_msg_subscription
} // End of group v2x_information_service
} // End of module LibItsHttp_JsonTemplates
Supports Markdown
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