package infrastructure.client.validateprofile.dto.response;

import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.Builder;
import lombok.Value;

@Value
@Builder
@RegisterForReflection
public class ValidateProfileResponse {
    Boolean hasError;
    String errorMessage;
    String errorCode;
    Object data;

    public ValidateProfileResponse() {
        this.hasError = false;
        this.errorMessage = "";
        this.errorCode = "";
        this.data = null;
    }

    public ValidateProfileResponse(Boolean hasError, String errorMessage, String errorCode, Object data) {
        this.hasError = hasError;
        this.errorMessage = errorMessage;
        this.errorCode = errorCode;
        this.data = data;
    }

}