package br.com.zup.casadocodigo.category;

public class CategoryResponseDto {

    private Long id;
    private String name;

    public CategoryResponseDto(Category category) {
        this.id = category.getId();
        this.name = category.getName();
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }
}

{'avg_line_length': 17.714285714285715, 'max_line_length': 51, 'alphanum_fraction': 0.6182795698924731, 'licenses': ['Apache-2.0'], 'repository_name': 'GiovaniFavero/orange-talents-01-template-casa-do-codigo', 'path': 'casadocodigo/src/main/java/br/com/zup/casadocodigo/category/CategoryResponseDto.java', 'size': 372, 'lang': 'Java'}