package com.bcxin.api.interfaces.rbacs.responses;

import com.bcxin.Infrastructures.entities.OperatorValueType;
import lombok.Getter;

import java.io.Serializable;

@Getter
public class CategoryGetResponse implements Serializable {
    private final String id;
    private final String code;
    private final String name;
    private final String note;
    private final OperatorValueType creator;
    private final OperatorValueType lastModifier;

    public CategoryGetResponse(String id,String code, String name, String note,
                               OperatorValueType creator, OperatorValueType lastModifier) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.note = note;
        this.creator = creator;
        this.lastModifier = lastModifier;
    }

    public static CategoryGetResponse create(String id,String code, String name, String note,
                                             OperatorValueType creator, OperatorValueType lastModifier) {
        return new CategoryGetResponse(id, code, name, note, creator, lastModifier);
    }
}
