/*
 * gad_shape.h
 *
 * Common base type for GAD shapes.
 */

#ifndef _OpenAPI_gad_shape_H_
#define _OpenAPI_gad_shape_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_gad_shape_s OpenAPI_gad_shape_t;
#include "supported_gad_shapes.h"

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_gad_shape_s {
    OpenAPI_supported_gad_shapes_e shape;
};

OpenAPI_gad_shape_t *OpenAPI_gad_shape_create(
    OpenAPI_supported_gad_shapes_e shape
);
void OpenAPI_gad_shape_free(OpenAPI_gad_shape_t *gad_shape);
OpenAPI_gad_shape_t *OpenAPI_gad_shape_parseFromJSON(cJSON *gad_shapeJSON);
cJSON *OpenAPI_gad_shape_convertToJSON(OpenAPI_gad_shape_t *gad_shape);
OpenAPI_gad_shape_t *OpenAPI_gad_shape_copy(OpenAPI_gad_shape_t *dst, OpenAPI_gad_shape_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_gad_shape_H_ */

