package com.sikey.wa04.common.dto.message;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 语聊语音消息
 *
 * @author luoyangwei
 * @date 2024年10月30日15:20:35
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class ChatVoiceMessage extends BasicChatMessage implements Serializable {
    @Serial
    private static final long serialVersionUID = 2173853760963485194L;

    /**
     * 消息内容
     */
    private ChatVoiceContent content;

    @Data
    @Accessors(chain = true)
    public static class ChatVoiceContent {
        private String fileUrl;
        private String fileType;
        private Integer duration;
    }
}
