package com.nms.server.bean;


public class EmailInfo {
	/**
	 * 邮件ID
	 */
	private Long id;
	/**
	 * 目标地址
	 */
	private String toAddress;		//接收地址
	/**
	 * 事件类型 
	 * 10监测恢复，11监测信息异常，12:监测结果超时，
	 * 20主动告警恢复，21主动告警异常，
	 * 31结果失败，32任务状态变更，
	 * 40系统运行异常恢复，41系统运行异常
	 */
	private Integer actionType;		//
	/**
	 * 事件标题（具体的监测、任务等名称标题）
	 */
	private String actionDesc;		//
	/**
	 * 事件摘要（监测或任务下的，典型描述）
	private String actionDesc2;		//
	 */
	/**
	 * 事件地点
	 */
	private String actionIp;		//
	/**
	 * 事件时间
	 */
	private String actionDate;		//
	/**
	 * 事件内容及结果
	 */
	private String content;			//
	/**
	 * 发送标示
	 * 0未发送 1已发送
	 */
	private Integer sendFlag;		//
	/**
	 * 发送标示
	 * 0紧急发送 1 非紧急
	 */
	private Integer sendLevel;		//
	
	public EmailInfo (){
		
	}
	
	public EmailInfo (EmailInfo info){
		this.toAddress = info.getToAddress();
		this.actionType = info.getActionType();
		this.actionDesc = info.getActionDesc();
//		this.actionDesc2 = info.getActionDesc2();
		this.actionIp = info.getActionIp();
		this.actionDate = info.getActionDate();
		this.content = info.getContent();
		this.sendFlag = info.getSendFlag();
		this.sendLevel = info.getSendLevel();
	}
	
	public EmailInfo (Integer actionType,String actionDesc,/*String actionDesc2,*/String actionIp,String actionDate,String content,Integer sendFlag,Integer sendLevel){
		this.actionType = actionType;
		this.actionDesc = actionDesc;
//		this.actionDesc2 = actionDesc2;
		this.actionIp = actionIp;
		this.actionDate = actionDate;
		this.content = content;
		this.sendFlag = sendFlag;
		this.sendLevel = sendLevel;
	}
	
	public String getToAddress() {
		return toAddress;
	}
	public void setToAddress(String toAddress) {
		this.toAddress = toAddress;
	}
	
	public Integer getActionType() {
		return actionType;
	}
	public void setActionType(Integer actionType) {
		this.actionType = actionType;
	}
	public String getActionIp() {
		return actionIp;
	}
	public void setActionIp(String actionIp) {
		this.actionIp = actionIp;
	}
	public String getActionDate() {
		return actionDate;
	}
	public void setActionDate(String actionDate) {
		this.actionDate = actionDate;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getSendFlag() {
		return sendFlag;
	}
	public void setSendFlag(Integer sendFlag) {
		this.sendFlag = sendFlag;
	}
	public String getActionDesc() {
		return actionDesc;
	}
	public void setActionDesc(String actionDesc) {
		this.actionDesc = actionDesc;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	/*public String getActionDesc2() {
		return actionDesc2;
	}

	public void setActionDesc2(String actionDesc2) {
		this.actionDesc2 = actionDesc2;
	}
*/
	public Integer getSendLevel() {
		return sendLevel;
	}

	public void setSendLevel(Integer sendLevel) {
		this.sendLevel = sendLevel;
	}
	

}
