package com.lifeonwalden.ebmms.common.bean;

import java.io.Serializable;

/**
 * response from remote service call
 */
public class Response implements Serializable {
    private static final long serialVersionUID = 8760591568880178199L;

    /**
     * message id
     */
    private String msgId;

    /**
     * the return value
     */
    private Object result;

    /**
     * error message when exception happened
     */
    private String errMsg;

    public String getMsgId() {
        return msgId;
    }

    public Response setMsgId(String msgId) {
        this.msgId = msgId;

        return this;
    }

    public Object getResult() {
        return result;
    }

    public Response setResult(Object result) {
        this.result = result;

        return this;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public Response setErrMsg(String errMsg) {
        this.errMsg = errMsg;

        return this;
    }
}

@@ -358,24 +358,88 @@
 ct result;%0A%0A
+    /**%0A     * return code%0A     */%0A    private int returnCode;%0A%0A
     /**%0A    
@@ -837,32 +837,192 @@
 rn this;%0A    %7D%0A%0A
+    public int getReturnCode() %7B%0A        return returnCode;%0A    %7D%0A%0A    public void setReturnCode(int returnCode) %7B%0A        this.returnCode = returnCode;%0A    %7D%0A%0A
     public Strin

add return code for Response