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

net.guerlab.sms.server.entity.SmsSendSuccessEvent Maven / Gradle / Ivy

/*
 * Copyright 2018-2023 guerlab.net and other contributors.
 *
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.gnu.org/licenses/lgpl-3.0.html
 *
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.guerlab.sms.server.entity;

import java.util.Collection;
import java.util.Map;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

import org.springframework.context.ApplicationEvent;

import net.guerlab.sms.core.handler.SendHandler;

/**
 * 发送成功事件.
 *
 * @author guer
 */
@Getter
@ToString
@EqualsAndHashCode(callSuper = true)
public class SmsSendSuccessEvent extends ApplicationEvent {

	/**
	 * 发送渠道.
	 */
	private final String sendChannel;

	/**
	 * 电话号码列表.
	 */
	private final Collection phones;

	/**
	 * 类型.
	 */
	private final String type;

	/**
	 * 参数列表.
	 */
	private final Map params;

	public SmsSendSuccessEvent(SendHandler source, String sendChannel, Collection phones, String type, Map params) {
		super(source);
		this.sendChannel = sendChannel;
		this.phones = phones;
		this.type = type;
		this.params = params;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy