com.unitech.lib.protocol

## Class Response

- java.lang.Object
- - com.unitech.lib.protocol.Response

-     public class Response
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Response(byte[] data)`
    `Response(int code)`
    `Response(ResultCode code)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ResultCode` | `getCode()`
    `byte[]` | `getData()`
    `static ResultCode` | `getResultCode(byte[] data)`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Response

          public Response(int code)

    - #### Response

          public Response(ResultCode code)

    - #### Response

          public Response(byte[] data)
                   throws java.lang.Exception

      Throws:
        `java.lang.Exception`

  - ### Method Detail

    - #### getCode

          public ResultCode getCode()

    - #### getData

          public byte[] getData()

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### getResultCode

          public static ResultCode getResultCode(byte[] data)
                                          throws java.lang.Exception

      Throws:
        `java.lang.Exception`