package cn.reghao.tnb.content.app.data.model.po;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 音频文件
 *
 * @author reghao
 * @date 2023-07-05 16:42:01
 */
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
public class AudioFile extends BaseObject<Integer> {
    private String audioFileId;
    private String objectId;
    private int duration;
    private String codec;
    private Long bitRate;
    private String url;

    public AudioFile(String audioFileId, String objectId, String url, AudioFile audioFile) {
        this.audioFileId = audioFileId;
        this.objectId = objectId;
        this.duration = audioFile.getDuration();
        this.codec = audioFile.getCodec();
        this.bitRate = audioFile.getBitRate();
        this.url = url;
    }
}
