All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eleme.openapi.sdk.oauth.response.ErrorResponse Maven / Gradle / Ivy

The newest version!
package eleme.openapi.sdk.oauth.response;

import com.fasterxml.jackson.annotation.JsonAlias;
import eleme.openapi.sdk.oauth.mapping.TokenField;
import eleme.openapi.sdk.utils.StringUtils;

import java.io.Serializable;

public class ErrorResponse implements Serializable {

    @JsonAlias({"error", "code"})
    private String error;

    @JsonAlias({"error_description", "message"})
    private String error_description;

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getError_description() {
        return error_description;
    }

    public void setError_description(String error_description) {
        this.error_description = error_description;
    }

    public boolean isSuccess() {
        return StringUtils.isEmpty(error);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy