All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.byteplus.model.beans.ImgUrlOption Maven / Gradle / Ivy

There is a newer version: 1.1.23
Show newest version
package com.byteplus.model.beans;

import com.byteplus.helper.Const;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class ImgUrlOption {
    boolean isHttps;
    String fomat;
    String sigKey;
    String tpl;
    int w;
    int h;
    Map> kv;

    public void setVodTplObj() {
        this.tpl = Const.VOD_TPL_OBJ;
    }

    public void setVodTplNoop() {
        this.tpl = Const.VOD_TPL_NOOP;
    }

    public void setVodTplCenterCrop(int width, int height) {
        this.w = width;
        this.h = height;
        this.tpl = Const.VOD_TPL_CENTER_CROP;
    }

    public void setVodTplSmartCrop(int width, int height) {
        this.w = width;
        this.h = height;
        this.tpl = Const.VOD_TPL_SMART_CROP;
    }

    public void setVodTplResize(int width, int height) {
        this.w = width;
        this.h = height;
        this.tpl = Const.VOD_TPL_RESIZE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy