package cn.reghao.tnb.content.api.dto;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author reghao
 * @date 2023-09-03 15:08:23
 */
@Setter
@Getter
public class VideoRegion implements Serializable {
    private static final long serialVersionUID = 1L;

    private int pid;
    private int id;
    private String name;
    private int regionId;
    private String label;
    private int value;
    private String icon;
    private int sort;
    private List<VideoRegion> children;

    public VideoRegion(int pid, int regionId, int id, String name, String icon, int sort) {
        this.pid = pid;
        this.regionId = regionId;
        this.value = id;
        this.label = name;
        this.icon = icon;
        this.sort = sort;
        this.children = new ArrayList<>();
    }

    public VideoRegion(int pid, int id, String name, int sort) {
        this.pid = pid;
        this.id = id;
        this.name = name;
        this.sort = sort;
    }
}
