2020-06-04 18:12:05 +00:00
|
|
|
/*
|
|
|
|
* access_and_mobility_data.h
|
|
|
|
*
|
2023-03-01 10:56:49 +00:00
|
|
|
* Represents Access and Mobility data for a UE.
|
2020-06-04 18:12:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _OpenAPI_access_and_mobility_data_H_
|
|
|
|
#define _OpenAPI_access_and_mobility_data_H_
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include "../external/cJSON.h"
|
|
|
|
#include "../include/list.h"
|
|
|
|
#include "../include/keyValuePair.h"
|
|
|
|
#include "../include/binary.h"
|
|
|
|
#include "access_type.h"
|
|
|
|
#include "cm_info.h"
|
2021-07-07 08:32:55 +00:00
|
|
|
#include "plmn_id_1.h"
|
2020-06-04 18:12:05 +00:00
|
|
|
#include "rat_type.h"
|
|
|
|
#include "rm_info.h"
|
|
|
|
#include "sms_support.h"
|
|
|
|
#include "ue_reachability.h"
|
|
|
|
#include "user_location.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct OpenAPI_access_and_mobility_data_s OpenAPI_access_and_mobility_data_t;
|
|
|
|
typedef struct OpenAPI_access_and_mobility_data_s {
|
|
|
|
struct OpenAPI_user_location_s *location;
|
|
|
|
char *location_ts;
|
|
|
|
char *time_zone;
|
|
|
|
char *time_zone_ts;
|
|
|
|
OpenAPI_access_type_e access_type;
|
|
|
|
OpenAPI_list_t *reg_states;
|
|
|
|
char *reg_states_ts;
|
|
|
|
OpenAPI_list_t *conn_states;
|
|
|
|
char *conn_states_ts;
|
|
|
|
struct OpenAPI_ue_reachability_s *reachability_status;
|
|
|
|
char *reachability_status_ts;
|
2020-06-17 05:22:28 +00:00
|
|
|
OpenAPI_sms_support_e sms_over_nas_status;
|
2020-06-04 18:12:05 +00:00
|
|
|
char *sms_over_nas_status_ts;
|
2021-07-16 08:02:33 +00:00
|
|
|
bool is_roaming_status;
|
2020-06-04 18:12:05 +00:00
|
|
|
int roaming_status;
|
|
|
|
char *roaming_status_ts;
|
2021-07-07 08:32:55 +00:00
|
|
|
struct OpenAPI_plmn_id_1_s *current_plmn;
|
2020-06-04 18:12:05 +00:00
|
|
|
char *current_plmn_ts;
|
|
|
|
OpenAPI_list_t *rat_type;
|
|
|
|
char *rat_types_ts;
|
2021-07-07 08:32:55 +00:00
|
|
|
char *supp_feat;
|
2023-03-01 10:56:49 +00:00
|
|
|
OpenAPI_list_t *reset_ids;
|
2020-06-04 18:12:05 +00:00
|
|
|
} OpenAPI_access_and_mobility_data_t;
|
|
|
|
|
|
|
|
OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_create(
|
|
|
|
OpenAPI_user_location_t *location,
|
|
|
|
char *location_ts,
|
|
|
|
char *time_zone,
|
|
|
|
char *time_zone_ts,
|
|
|
|
OpenAPI_access_type_e access_type,
|
|
|
|
OpenAPI_list_t *reg_states,
|
|
|
|
char *reg_states_ts,
|
|
|
|
OpenAPI_list_t *conn_states,
|
|
|
|
char *conn_states_ts,
|
|
|
|
OpenAPI_ue_reachability_t *reachability_status,
|
|
|
|
char *reachability_status_ts,
|
2020-06-17 05:22:28 +00:00
|
|
|
OpenAPI_sms_support_e sms_over_nas_status,
|
2020-06-04 18:12:05 +00:00
|
|
|
char *sms_over_nas_status_ts,
|
2021-07-16 08:02:33 +00:00
|
|
|
bool is_roaming_status,
|
2020-06-04 18:12:05 +00:00
|
|
|
int roaming_status,
|
|
|
|
char *roaming_status_ts,
|
2021-07-07 08:32:55 +00:00
|
|
|
OpenAPI_plmn_id_1_t *current_plmn,
|
2020-06-04 18:12:05 +00:00
|
|
|
char *current_plmn_ts,
|
|
|
|
OpenAPI_list_t *rat_type,
|
2021-07-07 08:32:55 +00:00
|
|
|
char *rat_types_ts,
|
2023-03-01 10:56:49 +00:00
|
|
|
char *supp_feat,
|
|
|
|
OpenAPI_list_t *reset_ids
|
2021-07-07 08:32:55 +00:00
|
|
|
);
|
2020-06-04 18:12:05 +00:00
|
|
|
void OpenAPI_access_and_mobility_data_free(OpenAPI_access_and_mobility_data_t *access_and_mobility_data);
|
|
|
|
OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJSON(cJSON *access_and_mobility_dataJSON);
|
|
|
|
cJSON *OpenAPI_access_and_mobility_data_convertToJSON(OpenAPI_access_and_mobility_data_t *access_and_mobility_data);
|
2020-06-17 05:22:28 +00:00
|
|
|
OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_copy(OpenAPI_access_and_mobility_data_t *dst, OpenAPI_access_and_mobility_data_t *src);
|
2020-06-04 18:12:05 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _OpenAPI_access_and_mobility_data_H_ */
|
|
|
|
|