/*
 * qos_data.h
 *
 * Contains the QoS parameters.
 */

#ifndef _OpenAPI_qos_data_H_
#define _OpenAPI_qos_data_H_

#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct OpenAPI_qos_data_s OpenAPI_qos_data_t;
#include "arp.h"
#include "pdu_set_qos_para_rm.h"

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_qos_data_s {
    char *qos_id;
    bool is__5qi;
    int _5qi;
    bool is_maxbr_ul_null;
    char *maxbr_ul;
    bool is_maxbr_dl_null;
    char *maxbr_dl;
    bool is_gbr_ul_null;
    char *gbr_ul;
    bool is_gbr_dl_null;
    char *gbr_dl;
    struct OpenAPI_arp_s *arp;
    bool is_qnc;
    int qnc;
    bool is_priority_level_null;
    bool is_priority_level;
    int priority_level;
    bool is_aver_window_null;
    bool is_aver_window;
    int aver_window;
    bool is_max_data_burst_vol_null;
    bool is_max_data_burst_vol;
    int max_data_burst_vol;
    bool is_reflective_qos;
    int reflective_qos;
    char *sharing_key_dl;
    char *sharing_key_ul;
    bool is_max_packet_loss_rate_dl_null;
    bool is_max_packet_loss_rate_dl;
    int max_packet_loss_rate_dl;
    bool is_max_packet_loss_rate_ul_null;
    bool is_max_packet_loss_rate_ul;
    int max_packet_loss_rate_ul;
    bool is_def_qos_flow_indication;
    int def_qos_flow_indication;
    bool is_ext_max_data_burst_vol_null;
    bool is_ext_max_data_burst_vol;
    int ext_max_data_burst_vol;
    bool is_packet_delay_budget;
    int packet_delay_budget;
    char *packet_error_rate;
    bool is_pdu_set_qos_dl_null;
    struct OpenAPI_pdu_set_qos_para_rm_s *pdu_set_qos_dl;
    bool is_pdu_set_qos_ul_null;
    struct OpenAPI_pdu_set_qos_para_rm_s *pdu_set_qos_ul;
};

OpenAPI_qos_data_t *OpenAPI_qos_data_create(
    char *qos_id,
    bool is__5qi,
    int _5qi,
    bool is_maxbr_ul_null,
    char *maxbr_ul,
    bool is_maxbr_dl_null,
    char *maxbr_dl,
    bool is_gbr_ul_null,
    char *gbr_ul,
    bool is_gbr_dl_null,
    char *gbr_dl,
    OpenAPI_arp_t *arp,
    bool is_qnc,
    int qnc,
    bool is_priority_level_null,
    bool is_priority_level,
    int priority_level,
    bool is_aver_window_null,
    bool is_aver_window,
    int aver_window,
    bool is_max_data_burst_vol_null,
    bool is_max_data_burst_vol,
    int max_data_burst_vol,
    bool is_reflective_qos,
    int reflective_qos,
    char *sharing_key_dl,
    char *sharing_key_ul,
    bool is_max_packet_loss_rate_dl_null,
    bool is_max_packet_loss_rate_dl,
    int max_packet_loss_rate_dl,
    bool is_max_packet_loss_rate_ul_null,
    bool is_max_packet_loss_rate_ul,
    int max_packet_loss_rate_ul,
    bool is_def_qos_flow_indication,
    int def_qos_flow_indication,
    bool is_ext_max_data_burst_vol_null,
    bool is_ext_max_data_burst_vol,
    int ext_max_data_burst_vol,
    bool is_packet_delay_budget,
    int packet_delay_budget,
    char *packet_error_rate,
    bool is_pdu_set_qos_dl_null,
    OpenAPI_pdu_set_qos_para_rm_t *pdu_set_qos_dl,
    bool is_pdu_set_qos_ul_null,
    OpenAPI_pdu_set_qos_para_rm_t *pdu_set_qos_ul
);
void OpenAPI_qos_data_free(OpenAPI_qos_data_t *qos_data);
OpenAPI_qos_data_t *OpenAPI_qos_data_parseFromJSON(cJSON *qos_dataJSON);
cJSON *OpenAPI_qos_data_convertToJSON(OpenAPI_qos_data_t *qos_data);
OpenAPI_qos_data_t *OpenAPI_qos_data_copy(OpenAPI_qos_data_t *dst, OpenAPI_qos_data_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_qos_data_H_ */

