程序包 com.easemob.im

类 ApiResponse<T>

java.lang.Object
com.easemob.im.ApiResponse<T>

public class ApiResponse<T> extends Object
API response returned by API call.
  • 构造器详细资料

    • ApiResponse

      public ApiResponse(int statusCode, Map<String,List<String>> headers)

      Constructor for ApiResponse.

      参数:
      statusCode - The status code of HTTP response
      headers - The headers of HTTP response
    • ApiResponse

      public ApiResponse(int statusCode, Map<String,List<String>> headers, T data)

      Constructor for ApiResponse.

      参数:
      statusCode - The status code of HTTP response
      headers - The headers of HTTP response
      data - The object deserialized from response bod
  • 方法详细资料

    • getStatusCode

      public int getStatusCode()

      Get the status code.

      返回:
      the status code
    • getHeaders

      public Map<String,List<String>> getHeaders()

      Get the headers.

      返回:
      a Map of headers
    • getData

      public T getData()

      Get the data.

      返回:
      the data