package com.remax.visualnovel.widget.imagepicker.bean.selectconfig;


import com.remax.visualnovel.widget.imagepicker.bean.ImageItem;

/**
 * Time: 2019/9/3 13:46
 * Author:ypx
 * Description:小红书剪裁配置类
 */
public class CropSelectConfig extends BaseSelectConfig {
    private ImageItem firstImageItem;
    private boolean assignGapState = false;

    public CropSelectConfig() {
        setSinglePickImageOrVideoType(true);
    }

    public ImageItem getFirstImageItem() {
        return firstImageItem;
    }


    public void setFirstImageItem(ImageItem firstImageItem) {
        this.firstImageItem = firstImageItem;
    }

    public boolean hasFirstImageItem() {
        return firstImageItem != null && firstImageItem.width > 0 && firstImageItem.height > 0;
    }

    public boolean isAssignGapState() {
        return assignGapState;
    }

    public void setAssignGapState(boolean assignGapState) {
        this.assignGapState = assignGapState;
    }
}
