package com.petshop.backend.dto.common;

import java.util.Objects;

public class DropdownOption {
    private Long id;
    private String label;

    public DropdownOption() {
    }

    public DropdownOption(Long id, String label) {
        this.id = id;
        this.label = label;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

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

    @Override
    public int hashCode() {
        return Objects.hash(id, label);
    }

    @Override
    public String toString() {
        return "DropdownOption{" +
                "id=" + id +
                ", label='" + label + '\'' +
                '}';
    }
}
