package com.aip.gateway.api.model.response;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
//@Data
@Getter
@Setter
@ToString
//@Builder
@ApiModel("ResponseStream(STREAM 응답")
public class ResponseStream extends ResponseBase {

    @ApiModelProperty("File Stream Data")  // Y BLOB
    @JsonProperty("fileData")
    private String fileData;

    @JsonIgnore
    private String outputFileName;

    public ResponseStream(int errorCode, String errorMessage) {
        super(errorCode, errorMessage, "", "", "", "", "", "", "", 0, "", "", "", "", "", 0);
        fileData = null;
        outputFileName = "";
    }
}
