Package ai.reveng.api

Class FunctionsDecompilationApi

java.lang.Object
ai.reveng.api.FunctionsDecompilationApi

public class FunctionsDecompilationApi extends Object
  • Constructor Details

    • FunctionsDecompilationApi

      public FunctionsDecompilationApi()
    • FunctionsDecompilationApi

      public FunctionsDecompilationApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • checkFunctionDecompilationTaskCall

      public okhttp3.Call checkFunctionDecompilationTaskCall(@Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for checkFunctionDecompilationTask
      Parameters:
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • checkFunctionDecompilationTask

      public BaseResponseFunctionTaskResponse checkFunctionDecompilationTask(@Nonnull Integer functionId) throws ApiException
      Check the status of a function decompilation
      Parameters:
      functionId - (required)
      Returns:
      BaseResponseFunctionTaskResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • checkFunctionDecompilationTaskWithHttpInfo

      public ApiResponse<BaseResponseFunctionTaskResponse> checkFunctionDecompilationTaskWithHttpInfo(@Nonnull Integer functionId) throws ApiException
      Check the status of a function decompilation
      Parameters:
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseFunctionTaskResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • checkFunctionDecompilationTaskAsync

      public okhttp3.Call checkFunctionDecompilationTaskAsync(@Nonnull Integer functionId, ApiCallback<BaseResponseFunctionTaskResponse> _callback) throws ApiException
      Check the status of a function decompilation (asynchronously)
      Parameters:
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • createDecompilationCommentCall

      public okhttp3.Call createDecompilationCommentCall(@Nonnull Integer functionId, @Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, ApiCallback _callback) throws ApiException
      Build call for createDecompilationComment
      Parameters:
      functionId - (required)
      functionCommentCreateRequest - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createDecompilationComment

      public BaseResponseCommentResponse createDecompilationComment(@Nonnull Integer functionId, @Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException
      Create a comment for this function Creates a comment associated with a specified function).
      Parameters:
      functionId - (required)
      functionCommentCreateRequest - (required)
      Returns:
      BaseResponseCommentResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createDecompilationCommentWithHttpInfo

      public ApiResponse<BaseResponseCommentResponse> createDecompilationCommentWithHttpInfo(@Nonnull Integer functionId, @Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException
      Create a comment for this function Creates a comment associated with a specified function).
      Parameters:
      functionId - (required)
      functionCommentCreateRequest - (required)
      Returns:
      ApiResponse<BaseResponseCommentResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createDecompilationCommentAsync

      public okhttp3.Call createDecompilationCommentAsync(@Nonnull Integer functionId, @Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, ApiCallback<BaseResponseCommentResponse> _callback) throws ApiException
      Create a comment for this function (asynchronously) Creates a comment associated with a specified function).
      Parameters:
      functionId - (required)
      functionCommentCreateRequest - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      201 Successful Response -
      422 Invalid request parameters -
      400 Bad Request -
    • createFunctionDecompilationTaskCall

      public okhttp3.Call createFunctionDecompilationTaskCall(@Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for createFunctionDecompilationTask
      Parameters:
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      202 Successful Response -
      422 Invalid request parameters -
      409 Security checks already extracted or queued -
    • createFunctionDecompilationTask

      public BaseResponseStr createFunctionDecompilationTask(@Nonnull Integer functionId) throws ApiException
      Queues a function decompilation
      Parameters:
      functionId - (required)
      Returns:
      BaseResponseStr
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      202 Successful Response -
      422 Invalid request parameters -
      409 Security checks already extracted or queued -
    • createFunctionDecompilationTaskWithHttpInfo

      public ApiResponse<BaseResponseStr> createFunctionDecompilationTaskWithHttpInfo(@Nonnull Integer functionId) throws ApiException
      Queues a function decompilation
      Parameters:
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseStr>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      202 Successful Response -
      422 Invalid request parameters -
      409 Security checks already extracted or queued -
    • createFunctionDecompilationTaskAsync

      public okhttp3.Call createFunctionDecompilationTaskAsync(@Nonnull Integer functionId, ApiCallback<BaseResponseStr> _callback) throws ApiException
      Queues a function decompilation (asynchronously)
      Parameters:
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      202 Successful Response -
      422 Invalid request parameters -
      409 Security checks already extracted or queued -
    • deleteDecompilationCommentCall

      public okhttp3.Call deleteDecompilationCommentCall(@Nonnull Integer commentId, @Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for deleteDecompilationComment
      Parameters:
      commentId - (required)
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteDecompilationComment

      public BaseResponseBool deleteDecompilationComment(@Nonnull Integer commentId, @Nonnull Integer functionId) throws ApiException
      Delete a comment Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      Returns:
      BaseResponseBool
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteDecompilationCommentWithHttpInfo

      public ApiResponse<BaseResponseBool> deleteDecompilationCommentWithHttpInfo(@Nonnull Integer commentId, @Nonnull Integer functionId) throws ApiException
      Delete a comment Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseBool>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • deleteDecompilationCommentAsync

      public okhttp3.Call deleteDecompilationCommentAsync(@Nonnull Integer commentId, @Nonnull Integer functionId, ApiCallback<BaseResponseBool> _callback) throws ApiException
      Delete a comment (asynchronously) Deletes an existing comment. Users can only delete their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only delete your own comments -
      400 Bad Request -
    • getDecompilationCommentsCall

      public okhttp3.Call getDecompilationCommentsCall(@Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for getDecompilationComments
      Parameters:
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getDecompilationComments

      public BaseResponseListCommentResponse getDecompilationComments(@Nonnull Integer functionId) throws ApiException
      Get comments for this function Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to.
      Parameters:
      functionId - (required)
      Returns:
      BaseResponseListCommentResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getDecompilationCommentsWithHttpInfo

      public ApiResponse<BaseResponseListCommentResponse> getDecompilationCommentsWithHttpInfo(@Nonnull Integer functionId) throws ApiException
      Get comments for this function Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to.
      Parameters:
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseListCommentResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getDecompilationCommentsAsync

      public okhttp3.Call getDecompilationCommentsAsync(@Nonnull Integer functionId, ApiCallback<BaseResponseListCommentResponse> _callback) throws ApiException
      Get comments for this function (asynchronously) Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to.
      Parameters:
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
    • getFunctionDecompilationCall

      public okhttp3.Call getFunctionDecompilationCall(@Nonnull Integer functionId, ApiCallback _callback) throws ApiException
      Build call for getFunctionDecompilation
      Parameters:
      functionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      404 Unable to find a decompilation for the function_id given -
    • getFunctionDecompilation

      public BaseResponseDecompilationResponse getFunctionDecompilation(@Nonnull Integer functionId) throws ApiException
      Get decompilation result
      Parameters:
      functionId - (required)
      Returns:
      BaseResponseDecompilationResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      404 Unable to find a decompilation for the function_id given -
    • getFunctionDecompilationWithHttpInfo

      public ApiResponse<BaseResponseDecompilationResponse> getFunctionDecompilationWithHttpInfo(@Nonnull Integer functionId) throws ApiException
      Get decompilation result
      Parameters:
      functionId - (required)
      Returns:
      ApiResponse<BaseResponseDecompilationResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      404 Unable to find a decompilation for the function_id given -
    • getFunctionDecompilationAsync

      public okhttp3.Call getFunctionDecompilationAsync(@Nonnull Integer functionId, ApiCallback<BaseResponseDecompilationResponse> _callback) throws ApiException
      Get decompilation result (asynchronously)
      Parameters:
      functionId - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      404 Unable to find a decompilation for the function_id given -
    • updateDecompilationCommentCall

      public okhttp3.Call updateDecompilationCommentCall(@Nonnull Integer commentId, @Nonnull Integer functionId, @Nonnull CommentUpdateRequest commentUpdateRequest, ApiCallback _callback) throws ApiException
      Build call for updateDecompilationComment
      Parameters:
      commentId - (required)
      functionId - (required)
      commentUpdateRequest - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateDecompilationComment

      public BaseResponseCommentResponse updateDecompilationComment(@Nonnull Integer commentId, @Nonnull Integer functionId, @Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException
      Update a comment Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      commentUpdateRequest - (required)
      Returns:
      BaseResponseCommentResponse
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateDecompilationCommentWithHttpInfo

      public ApiResponse<BaseResponseCommentResponse> updateDecompilationCommentWithHttpInfo(@Nonnull Integer commentId, @Nonnull Integer functionId, @Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException
      Update a comment Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      commentUpdateRequest - (required)
      Returns:
      ApiResponse<BaseResponseCommentResponse>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -
    • updateDecompilationCommentAsync

      public okhttp3.Call updateDecompilationCommentAsync(@Nonnull Integer commentId, @Nonnull Integer functionId, @Nonnull CommentUpdateRequest commentUpdateRequest, ApiCallback<BaseResponseCommentResponse> _callback) throws ApiException
      Update a comment (asynchronously) Updates the content of an existing comment. Users can only update their own comments.
      Parameters:
      commentId - (required)
      functionId - (required)
      commentUpdateRequest - (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful Response -
      422 Invalid request parameters -
      403 You can only update your own comments -
      400 Bad Request -