程序包 com.volcengine

类 ApiResponse<T>

  • 类型参数:
    T - The type of data that is deserialized from response body

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

      • ApiResponse

        public ApiResponse​(int statusCode,
                           Map<String,​List<String>> headers)
        参数:
        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)
        参数:
        statusCode - The status code of HTTP response
        headers - The headers of HTTP response
        data - The object deserialized from response bod
    • 方法详细资料

      • getStatusCode

        public int getStatusCode()
      • getData

        public T getData()