package com.group7.gallerium.models;

import java.util.ArrayList;

public class MediaCategory {

    public int height = 1; // 0 -> collapse, 1 -> expand
    public boolean willCollapse = false;
    public boolean willExpand = false;
    private String nameCategory;
    private String backup = "";
    private ArrayList<Media> listMedia;

    public String getNameCategory() {
        return nameCategory;
    }

    public void setNameCategory(String nameCategory) {
        this.nameCategory = nameCategory;
    }

    public ArrayList<Media> getList() {
        return listMedia;
    }

    public void setList(ArrayList<Media> listMedia) {
        this.listMedia = listMedia;
    }

    public void addMediaToList(Media media){this.listMedia.add(media);}

    public MediaCategory(String nameCategory, ArrayList<Media> listMedia) {
        this.nameCategory = nameCategory;
        this.listMedia = listMedia;
    }

    public void setBackup(String backup) {
        this.backup = backup;
    }

    public String getBackup() {
        return backup;
    }

    public MediaCategory(ArrayList<Media> listMedia) {
        this.listMedia = listMedia;
    }
}
