LibItsHttp_JsonTemplates.ttcn 5.58 KB
Newer Older
Yann Garcia's avatar
Yann Garcia committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/**
 *    @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
16 17 18
  // LibMec/UEidentityAPI
  import from UEidentityAPI_TypesAndValues all;
  import from UEidentityAPI_Templates all;
Yann Garcia's avatar
Yann Garcia committed
19 20 21
  // LibMec/RnisAPI
  import from RnisAPI_TypesAndValues all;
  import from RnisAPI_Templates all;
Yann Garcia's avatar
Yann Garcia committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
  
  // 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
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

  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
55 56 57 58 59 60 61 62 63 64 65 66
    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
67 68 69 70 71
    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
72
  
Yann Garcia's avatar
Yann Garcia committed
73 74
    template (present) JsonBody mw_body_json_zone_info(
                                                       template (present) ZoneInfo p_zone_info := ?
Yann Garcia's avatar
Yann Garcia committed
75
                                                     ) := {
Yann Garcia's avatar
Yann Garcia committed
76 77 78 79 80 81 82
      zoneInfo := p_zone_info
    } // End of template mw_body_json_zone_info
    
  } // End of group locarion_api

  group ue_identity_api {

83 84 85 86
    template (value) JsonBody m_body_json_ue_identity_tag_info(
                                                               in template (value) UeIdentityTagInfo p_ueIdentityTagInfo
                                                               ) := {
      ueIdentityTagInfo := p_ueIdentityTagInfo
Yann Garcia's avatar
Yann Garcia committed
87
    } // End of template m_body_json_ue_identity_tag_info
88
    
Yann Garcia's avatar
Yann Garcia committed
89 90 91 92
    template (present) JsonBody mw_body_json_ue_identity_tag_info(
                                                                  template (present) UeIdentityTagInfo p_ueIdentityTagInfo := ?
                                                                  ) := {
      ueIdentityTagInfo := p_ueIdentityTagInfo
Yann Garcia's avatar
Yann Garcia committed
93
    } // End of template mw_body_json_ue_identity_tag_info
Yann Garcia's avatar
Yann Garcia committed
94
    
95
    template (value) JsonBody m_body_json_ue_problem_details(
Yann Garcia's avatar
Yann Garcia committed
96
                                                             in template (value) UEidentityAPI_TypesAndValues.ProblemDetails p_problemDetails
97
                                                             ) := {
Yann Garcia's avatar
Yann Garcia committed
98
      problemDetails_ue_identity := p_problemDetails
99 100
    } // End of template m_body_json_ue_problem_details
    
Yann Garcia's avatar
Yann Garcia committed
101
    template (present) JsonBody mw_body_json_ue_problem_details(
Yann Garcia's avatar
Yann Garcia committed
102
                                                                template (present) UEidentityAPI_TypesAndValues.ProblemDetails p_problemDetails := ?
Yann Garcia's avatar
Yann Garcia committed
103
                                                                ) := {
Yann Garcia's avatar
Yann Garcia committed
104
      problemDetails_ue_identity := p_problemDetails
Yann Garcia's avatar
Yann Garcia committed
105 106 107
    } // End of template mw_body_json_ue_problem_details
    
  } // End of group ue_identity_api
Yann Garcia's avatar
Yann Garcia committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123

  group rnis_subscriptions {

    template (value) JsonBody m_body_json_cell_change_subscription(
                                                                   in template (value) CellChangeSubscription p_cellChangeSubscription
                                                                   ) := {
      cellChangeSubscription := p_cellChangeSubscription
    } // End of template m_body_json_cell_change_subscription
    
    template (present) JsonBody mw_body_json_cell_change_subscription(
                                                                      template (present) CellChangeSubscription p_cellChangeSubscription := ?
                                                                      ) := {
      cellChangeSubscription := p_cellChangeSubscription
    } // End of template mw_body_json_cell_change_subscription
    
  } // End of group rnis_subscriptions 
Yann Garcia's avatar
Yann Garcia committed
124 125
  
} // End of module LibItsHttp_JsonTemplates