package ru.kayashov.bar.controller.dto.ingredient;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import ru.kayashov.bar.model.entity.IngredientEntity;

@Getter
@Setter
@AllArgsConstructor
public class IngredientSimpleResponseDto {
    private Long id;
    private String name;
    private Boolean isHave;

    public static IngredientSimpleResponseDto mapToDto(IngredientEntity ingredient) {
        return new IngredientSimpleResponseDto(ingredient.getId(), ingredient.getName(), false/*ingredient.getIsHave()*/);
    }
}
