package com.petshop.backend.dto.auth;

import java.util.Objects;

public class AvatarUploadResponse {
    private String avatarUrl;
    private String message;

    public AvatarUploadResponse() {
    }

    public AvatarUploadResponse(String avatarUrl, String message) {
        this.avatarUrl = avatarUrl;
        this.message = message;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AvatarUploadResponse that = (AvatarUploadResponse) o;
        return Objects.equals(avatarUrl, that.avatarUrl) &&
                Objects.equals(message, that.message);
    }

    @Override
    public int hashCode() {
        return Objects.hash(avatarUrl, message);
    }

    @Override
    public String toString() {
        return "AvatarUploadResponse{" +
                "avatarUrl='" + avatarUrl + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
