Skip to content
LibItsHttp_JsonTemplates.ttcn 4.53 KiB
Newer Older
Yann Garcia's avatar
Yann Garcia committed
/**
 *    @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/LocationAPI
  import from LocationAPI_TypesAndValues all;
  import from LocationAPI_Templates all;
Yann Garcia's avatar
Yann Garcia committed
  // LibMec/UEidentityAPI
  import from UEidentityAPI_TypesAndValues all;
  import from UEidentityAPI_Templates all;
Yann Garcia's avatar
Yann Garcia committed
  
  // TODO Add here your custom RFCs import 
  
  // LibItsHttp
  import from LibItsHttp_JsonMessageBodyTypes all;
  import from LibItsHttp_JSONTypes all;
    
  template (value) JsonBody m_json_body_raw(
                                            in template (value) charstring p_raw
  ) := {
    raw := p_raw
  } // End of template m_json_body_raw

  template (present) JsonBody mw_json_body_raw(
                                               template (present) charstring p_raw := ?
  ) := {
    raw := p_raw
  } // End of template mw_json_body_raw
Yann Garcia's avatar
Yann Garcia committed

  group locarion_api {
    
    template (value) JsonBody m_body_json_user_info(
                                                    in template (value) UserInfo p_user_info
                                                    ) := {
      userInfo := p_user_info
    } // End of template m_body_json_user_info
    
    template (present) JsonBody mw_body_json_user_info(
                                                       template (present) UserInfo p_user_info := ?
                                                       ) := {
      userInfo := p_user_info
    } // End of template mw_body_json_user_info
    
Yann Garcia's avatar
Yann Garcia committed
    template (value) JsonBody m_body_json_user_list(
                                                    in template (value) UserList p_user_list
                                                    ) := {
      userList := p_user_list
    } // End of template m_body_json_user_list
    
    template (present) JsonBody mw_body_json_user_list(
                                                       template (present) UserList p_user_list := ?
                                                       ) := {
      userList := p_user_list
    } // End of template mw_body_json_user_list
    
Yann Garcia's avatar
Yann Garcia committed
    template (value) JsonBody m_body_json_zone_info(
                                                    in template (value) ZoneInfo p_zone_info
                                                    ) := {
      zoneInfo := p_zone_info
    } // End of template m_body_json_zone_info
Yann Garcia's avatar
Yann Garcia committed
    template (present) JsonBody mw_body_json_zone_info(
                                                       template (present) ZoneInfo p_zone_info := ?
Yann Garcia's avatar
Yann Garcia committed
                                                     ) := {
Yann Garcia's avatar
Yann Garcia committed
      zoneInfo := p_zone_info
    } // End of template mw_body_json_zone_info
    
  } // End of group locarion_api

  group ue_identity_api {

    template (value) JsonBody m_body_json_ue_identity_tag_info(
                                                               in template (value) UeIdentityTagInfo p_ueIdentityTagInfo
                                                               ) := {
      ueIdentityTagInfo := p_ueIdentityTagInfo
    } // End of template m_body_json_ue_identity_tags
    
Yann Garcia's avatar
Yann Garcia committed
    template (present) JsonBody mw_body_json_ue_identity_tag_info(
                                                                  template (present) UeIdentityTagInfo p_ueIdentityTagInfo := ?
                                                                  ) := {
      ueIdentityTagInfo := p_ueIdentityTagInfo
    } // End of template mw_body_json_ue_identity_tags
    
    template (value) JsonBody m_body_json_ue_problem_details(
                                                             in template (value) ProblemDetails p_problemDetails
                                                             ) := {
      problemDetails := p_problemDetails
    } // End of template m_body_json_ue_problem_details
    
Yann Garcia's avatar
Yann Garcia committed
    template (present) JsonBody mw_body_json_ue_problem_details(
                                                                template (present) ProblemDetails p_problemDetails := ?
                                                                ) := {
      problemDetails := p_problemDetails
    } // End of template mw_body_json_ue_problem_details
    
  } // End of group ue_identity_api
Yann Garcia's avatar
Yann Garcia committed
  
} // End of module LibItsHttp_JsonTemplates