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

com.yqjr.framework.component.esb.Reply Maven / Gradle / Ivy

/**
 * 
 */
package com.yqjr.framework.component.esb;

import org.springframework.util.Assert;

import com.yqjr.framework.datatype.Date;

/**
 * ClassName: Reply 
* Description: Reply信息
* Create By: admin
* Create Date: 2017年7月17日 上午8:34:43
* Modified By:
* Modified Date:
* Modified Content:
* Version: 1.0
*/ public class Reply { private String replyCode; private String replyText; private Status status; private Date reponseTime; public Reply(String replyCode, String replyText, Status status) { Assert.hasText(replyCode, "replyCode can't be empty"); Assert.hasText(replyText, "replyText can't be empty"); this.replyCode = replyCode; this.replyText = replyText; this.status = status; this.reponseTime = new Date(); } public enum Status { OK, ERROR } /** * @return the replyCode */ public String getReplyCode() { return replyCode; } /** * @return the replyText */ public String getReplyText() { return replyText; } /** * @return the status */ public Status getStatus() { return status; } /** * @return the reponseTime */ public Date getReponseTime() { return reponseTime; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy