/*
 * flow_information.h
 *
 * Contains the flow information.
 */

#ifndef _OpenAPI_flow_information_H_
#define _OpenAPI_flow_information_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_flow_information_s OpenAPI_flow_information_t;
#include "eth_flow_description.h"
#include "flow_direction.h"
#include "mpx_media_info.h"

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_flow_information_s {
    char *flow_description;
    struct OpenAPI_eth_flow_description_s *eth_flow_description;
    char *pack_filt_id;
    bool is_packet_filter_usage;
    int packet_filter_usage;
    bool is_tos_traffic_class_null;
    char *tos_traffic_class;
    bool is_spi_null;
    char *spi;
    bool is_flow_label_null;
    char *flow_label;
    OpenAPI_flow_direction_e flow_direction;
    OpenAPI_list_t *mpx_media_ul_infos;
    OpenAPI_list_t *mpx_media_dl_infos;
};

OpenAPI_flow_information_t *OpenAPI_flow_information_create(
    char *flow_description,
    OpenAPI_eth_flow_description_t *eth_flow_description,
    char *pack_filt_id,
    bool is_packet_filter_usage,
    int packet_filter_usage,
    bool is_tos_traffic_class_null,
    char *tos_traffic_class,
    bool is_spi_null,
    char *spi,
    bool is_flow_label_null,
    char *flow_label,
    OpenAPI_flow_direction_e flow_direction,
    OpenAPI_list_t *mpx_media_ul_infos,
    OpenAPI_list_t *mpx_media_dl_infos
);
void OpenAPI_flow_information_free(OpenAPI_flow_information_t *flow_information);
OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_informationJSON);
cJSON *OpenAPI_flow_information_convertToJSON(OpenAPI_flow_information_t *flow_information);
OpenAPI_flow_information_t *OpenAPI_flow_information_copy(OpenAPI_flow_information_t *dst, OpenAPI_flow_information_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_flow_information_H_ */

