/*
 * pgw_info.h
 *
 * Contains PGW Information
 */

#ifndef _OpenAPI_pgw_info_H_
#define _OpenAPI_pgw_info_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_pgw_info_s OpenAPI_pgw_info_t;
#include "ip_address.h"
#include "plmn_id.h"

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_pgw_info_s {
    char *dnn;
    char *pgw_fqdn;
    struct OpenAPI_ip_address_s *pgw_ip_addr;
    struct OpenAPI_plmn_id_s *plmn_id;
    bool is_epdg_ind;
    int epdg_ind;
    char *pcf_id;
    char *registration_time;
    bool is_wildcard_ind;
    int wildcard_ind;
};

OpenAPI_pgw_info_t *OpenAPI_pgw_info_create(
    char *dnn,
    char *pgw_fqdn,
    OpenAPI_ip_address_t *pgw_ip_addr,
    OpenAPI_plmn_id_t *plmn_id,
    bool is_epdg_ind,
    int epdg_ind,
    char *pcf_id,
    char *registration_time,
    bool is_wildcard_ind,
    int wildcard_ind
);
void OpenAPI_pgw_info_free(OpenAPI_pgw_info_t *pgw_info);
OpenAPI_pgw_info_t *OpenAPI_pgw_info_parseFromJSON(cJSON *pgw_infoJSON);
cJSON *OpenAPI_pgw_info_convertToJSON(OpenAPI_pgw_info_t *pgw_info);
OpenAPI_pgw_info_t *OpenAPI_pgw_info_copy(OpenAPI_pgw_info_t *dst, OpenAPI_pgw_info_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_pgw_info_H_ */

