Class ApiResponse<T>

java.lang.Object
com.ultikits.ultitools.entities.ApiResponse<T>
Type Parameters:
T - the type of the data payload

@Deprecated(since="6.3.1", forRemoval=true) public class ApiResponse<T> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
There is no replacement: this parsed the protocol v1 Worker envelope {code, msg, data}, which UltiCloud no longer serves. The protocol 2.0.0 catalogue answers {data: ...} and the framework parses it itself. Removed in 6.4.0.
Generic wrapper for backend API envelope responses. The backend wraps all plugin-related endpoints in this format.
Since:
6.2.0
Author:
wisdomme
Scheduled removal version:
6.4.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private T
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • code

      private String code
      Deprecated, for removal: This API element is subject to removal in a future version.
    • msg

      private String msg
      Deprecated, for removal: This API element is subject to removal in a future version.
    • data

      private T data
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • ApiResponse

      public ApiResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.