/*
 * ee_subscription.h
 *
 * 
 */

#ifndef _OpenAPI_ee_subscription_H_
#define _OpenAPI_ee_subscription_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_ee_subscription_s OpenAPI_ee_subscription_t;
#include "context_info.h"
#include "monitoring_configuration.h"
#include "reporting_options.h"

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_ee_subscription_s {
    char *callback_reference;
    OpenAPI_list_t* monitoring_configurations;
    struct OpenAPI_reporting_options_s *reporting_options;
    char *supported_features;
    char *subscription_id;
    struct OpenAPI_context_info_s *context_info;
    bool is_epc_applied_ind;
    int epc_applied_ind;
    char *scef_diam_host;
    char *scef_diam_realm;
    char *notify_correlation_id;
    char *second_callback_ref;
    char *gpsi;
    OpenAPI_list_t *exclude_gpsi_list;
    OpenAPI_list_t *include_gpsi_list;
    char *data_restoration_callback_uri;
    bool is_udr_restart_ind;
    int udr_restart_ind;
    char *last_synchronization_time;
    char *subscription_update_callback_uri;
};

OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_create(
    char *callback_reference,
    OpenAPI_list_t* monitoring_configurations,
    OpenAPI_reporting_options_t *reporting_options,
    char *supported_features,
    char *subscription_id,
    OpenAPI_context_info_t *context_info,
    bool is_epc_applied_ind,
    int epc_applied_ind,
    char *scef_diam_host,
    char *scef_diam_realm,
    char *notify_correlation_id,
    char *second_callback_ref,
    char *gpsi,
    OpenAPI_list_t *exclude_gpsi_list,
    OpenAPI_list_t *include_gpsi_list,
    char *data_restoration_callback_uri,
    bool is_udr_restart_ind,
    int udr_restart_ind,
    char *last_synchronization_time,
    char *subscription_update_callback_uri
);
void OpenAPI_ee_subscription_free(OpenAPI_ee_subscription_t *ee_subscription);
OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_parseFromJSON(cJSON *ee_subscriptionJSON);
cJSON *OpenAPI_ee_subscription_convertToJSON(OpenAPI_ee_subscription_t *ee_subscription);
OpenAPI_ee_subscription_t *OpenAPI_ee_subscription_copy(OpenAPI_ee_subscription_t *dst, OpenAPI_ee_subscription_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_ee_subscription_H_ */

