package com.yjz.cross.codec;

/**
 * RPC Response
 * @author huangyong
 */
public class RpcResponse {

    private String requestId;
    private String error;
    private Object result;

    public boolean isError() {
        return error != null;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}

@@ -58,17 +58,11 @@
 hor 
-huangyong
+biw
 %0A */
@@ -172,16 +172,49 @@
  result;
+%0A    private Class%3C?%3E returnType;
 %0A%0A    pu
@@ -711,11 +711,189 @@
 t;%0A    %7D
+%0A%0A    public Class%3C?%3E getReturnType()%0A    %7B%0A        return returnType;%0A    %7D%0A%0A    public void setReturnType(Class%3C?%3E returnType)%0A    %7B%0A        this.returnType = returnType;%0A    %7D
 %0A%7D%0A

change response