/*
 * apn_rate_status.h
 *
 * 
 */

#ifndef _OpenAPI_apn_rate_status_H_
#define _OpenAPI_apn_rate_status_H_

#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct OpenAPI_apn_rate_status_s OpenAPI_apn_rate_status_t;
typedef struct OpenAPI_apn_rate_status_s {
    bool is_remain_packets_ul;
    int remain_packets_ul;
    bool is_remain_packets_dl;
    int remain_packets_dl;
    char *validity_time;
    bool is_remain_ex_reports_ul;
    int remain_ex_reports_ul;
    bool is_remain_ex_reports_dl;
    int remain_ex_reports_dl;
} OpenAPI_apn_rate_status_t;

OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_create(
    bool is_remain_packets_ul,
    int remain_packets_ul,
    bool is_remain_packets_dl,
    int remain_packets_dl,
    char *validity_time,
    bool is_remain_ex_reports_ul,
    int remain_ex_reports_ul,
    bool is_remain_ex_reports_dl,
    int remain_ex_reports_dl
);
void OpenAPI_apn_rate_status_free(OpenAPI_apn_rate_status_t *apn_rate_status);
OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_parseFromJSON(cJSON *apn_rate_statusJSON);
cJSON *OpenAPI_apn_rate_status_convertToJSON(OpenAPI_apn_rate_status_t *apn_rate_status);
OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_copy(OpenAPI_apn_rate_status_t *dst, OpenAPI_apn_rate_status_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_apn_rate_status_H_ */

