package com.sikey.wa04.business.domain.adapter;

import com.sikey.wa04.business.domain.entity.message.Message;
import com.sikey.wa04.business.domain.entity.message.MessageReceivedLog;
import com.sikey.wa04.business.domain.entity.websocket.Ack;

import java.util.List;

/**
 * 消息接收适配器
 *
 * @author luoyangwei
 */
public interface MessageReceivedAdapter {

    /**
     * 保存消息
     *
     * @param message 消息
     * @return ack
     */
    List<Ack> save(Message message, List<MessageReceivedLog> messageReceivedLogs);

}
