/*
 * redirect_response.h
 *
 * The response shall include a Location header field containing a different URI  (pointing to a different URI of an other service instance), or the same URI if a request  is redirected to the same target resource via a different SCP. 
 */

#ifndef _OpenAPI_redirect_response_H_
#define _OpenAPI_redirect_response_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_redirect_response_s OpenAPI_redirect_response_t;

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_redirect_response_s {
    char *cause;
    char *target_scp;
    char *target_sepp;
};

OpenAPI_redirect_response_t *OpenAPI_redirect_response_create(
    char *cause,
    char *target_scp,
    char *target_sepp
);
void OpenAPI_redirect_response_free(OpenAPI_redirect_response_t *redirect_response);
OpenAPI_redirect_response_t *OpenAPI_redirect_response_parseFromJSON(cJSON *redirect_responseJSON);
cJSON *OpenAPI_redirect_response_convertToJSON(OpenAPI_redirect_response_t *redirect_response);
OpenAPI_redirect_response_t *OpenAPI_redirect_response_copy(OpenAPI_redirect_response_t *dst, OpenAPI_redirect_response_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_redirect_response_H_ */

