package com.njcn.msgpush.module.push.client.sender.fallback;

import com.njcn.msgpush.module.push.client.sender.EmailSender;
import com.njcn.msgpush.module.push.client.sender.SendOutcome;
import com.njcn.msgpush.module.push.client.sender.SendResult;
import com.njcn.msgpush.module.push.dal.dataobject.message.MessageRecordDO;

import java.util.Map;

/**
 * 邮件渠道固定结果 sender。
 */
public class FixedResultEmailSender extends AbstractFixedResultSender implements EmailSender {

    public FixedResultEmailSender(SendOutcome outcome, String message) {
        super(outcome, message);
    }

    @Override
    public SendResult sendEmail(MessageRecordDO messageRecord, Map<String, Object> params) {
        return this.buildResult();
    }
}
