/*
 * qos_requirement.h
 *
 * Represents the QoS requirements.
 */

#ifndef _OpenAPI_qos_requirement_H_
#define _OpenAPI_qos_requirement_H_

#include <string.h>
#include "third-party/cjson/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct OpenAPI_qos_requirement_s OpenAPI_qos_requirement_t;
#include "device_type.h"
#include "qos_resource_type.h"
#include "velocity_estimate.h"

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_qos_requirement_s {
    bool is__5qi;
    int _5qi;
    char *gfbr_ul;
    char *gfbr_dl;
    OpenAPI_qos_resource_type_e res_type;
    bool is_pdb;
    int pdb;
    char *per;
    struct OpenAPI_velocity_estimate_s *device_speed;
    OpenAPI_device_type_e device_type;
};

OpenAPI_qos_requirement_t *OpenAPI_qos_requirement_create(
    bool is__5qi,
    int _5qi,
    char *gfbr_ul,
    char *gfbr_dl,
    OpenAPI_qos_resource_type_e res_type,
    bool is_pdb,
    int pdb,
    char *per,
    OpenAPI_velocity_estimate_t *device_speed,
    OpenAPI_device_type_e device_type
);
void OpenAPI_qos_requirement_free(OpenAPI_qos_requirement_t *qos_requirement);
OpenAPI_qos_requirement_t *OpenAPI_qos_requirement_parseFromJSON(cJSON *qos_requirementJSON);
cJSON *OpenAPI_qos_requirement_convertToJSON(OpenAPI_qos_requirement_t *qos_requirement);
OpenAPI_qos_requirement_t *OpenAPI_qos_requirement_copy(OpenAPI_qos_requirement_t *dst, OpenAPI_qos_requirement_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_qos_requirement_H_ */

