diff --git a/src/main/java/io/gopluslabs/client/api/LockControllerApi.java b/src/main/java/io/gopluslabs/client/api/LockControllerApi.java index 259563f..30a1385 100644 --- a/src/main/java/io/gopluslabs/client/api/LockControllerApi.java +++ b/src/main/java/io/gopluslabs/client/api/LockControllerApi.java @@ -27,7 +27,10 @@ import io.gopluslabs.client.model.ResponseWrapperNftLockerResponse; +import io.gopluslabs.client.model.ResponseWrapperPageResponseTaNftLockerLockInfo; +import io.gopluslabs.client.model.ResponseWrapperPageResponseV4NftLockerLockInfos; import io.gopluslabs.client.model.ResponseWrapperTokenLockerResponse; +import io.gopluslabs.client.model.ResponseWrapperV4LpLockerLockInfoResp; import java.lang.reflect.Type; import java.util.ArrayList; @@ -54,6 +57,138 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * Build call for getNftLockerLockInfosListUsingGET + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public okhttp3.Call getNftLockerLockInfosListUsingGETCall(Integer pageNum, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/open/api/v1/locks/lpv3s"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pageNum != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pageNum", pageNum)); + if (pageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pageSize", pageSize)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + @Override + public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { + okhttp3.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getNftLockerLockInfosListUsingGETValidateBeforeCall(Integer pageNum, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'pageNum' is set + if (pageNum == null) { + throw new ApiException("Missing the required parameter 'pageNum' when calling getNftLockerLockInfosListUsingGET(Async)"); + } + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException("Missing the required parameter 'pageSize' when calling getNftLockerLockInfosListUsingGET(Async)"); + } + + okhttp3.Call call = getNftLockerLockInfosListUsingGETCall(pageNum, pageSize, progressListener, progressRequestListener); + return call; + + } + + /** + * get lpv3 locker infos + * + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @return ResponseWrapperPageResponseTaNftLockerLockInfo + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ResponseWrapperPageResponseTaNftLockerLockInfo getNftLockerLockInfosListUsingGET(Integer pageNum, Integer pageSize) throws ApiException { + ApiResponse resp = getNftLockerLockInfosListUsingGETWithHttpInfo(pageNum, pageSize); + return resp.getData(); + } + + /** + * get lpv3 locker infos + * + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @return ApiResponse<ResponseWrapperPageResponseTaNftLockerLockInfo> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getNftLockerLockInfosListUsingGETWithHttpInfo(Integer pageNum, Integer pageSize) throws ApiException { + okhttp3.Call call = getNftLockerLockInfosListUsingGETValidateBeforeCall(pageNum, pageSize, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get lpv3 locker infos (asynchronously) + * + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public okhttp3.Call getNftLockerLockInfosListUsingGETAsync(Integer pageNum, Integer pageSize, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + okhttp3.Call call = getNftLockerLockInfosListUsingGETValidateBeforeCall(pageNum, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for getNftLockersUsingGET * @param chainId chainId (required) @@ -370,4 +505,288 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for getV4NftLockerLockInfosListUsingGET + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public okhttp3.Call getV4NftLockerLockInfosListUsingGETCall(Integer pageNum, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/open/api/v1/locks/lpv4s"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pageNum != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pageNum", pageNum)); + if (pageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pageSize", pageSize)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + @Override + public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { + okhttp3.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getV4NftLockerLockInfosListUsingGETValidateBeforeCall(Integer pageNum, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'pageNum' is set + if (pageNum == null) { + throw new ApiException("Missing the required parameter 'pageNum' when calling getV4NftLockerLockInfosListUsingGET(Async)"); + } + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException("Missing the required parameter 'pageSize' when calling getV4NftLockerLockInfosListUsingGET(Async)"); + } + + okhttp3.Call call = getV4NftLockerLockInfosListUsingGETCall(pageNum, pageSize, progressListener, progressRequestListener); + return call; + + } + + /** + * get lpv4 locker infos + * + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @return ResponseWrapperPageResponseV4NftLockerLockInfos + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ResponseWrapperPageResponseV4NftLockerLockInfos getV4NftLockerLockInfosListUsingGET(Integer pageNum, Integer pageSize) throws ApiException { + ApiResponse resp = getV4NftLockerLockInfosListUsingGETWithHttpInfo(pageNum, pageSize); + return resp.getData(); + } + + /** + * get lpv4 locker infos + * + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @return ApiResponse<ResponseWrapperPageResponseV4NftLockerLockInfos> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getV4NftLockerLockInfosListUsingGETWithHttpInfo(Integer pageNum, Integer pageSize) throws ApiException { + okhttp3.Call call = getV4NftLockerLockInfosListUsingGETValidateBeforeCall(pageNum, pageSize, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get lpv4 locker infos (asynchronously) + * + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public okhttp3.Call getV4NftLockerLockInfosListUsingGETAsync(Integer pageNum, Integer pageSize, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + okhttp3.Call call = getV4NftLockerLockInfosListUsingGETValidateBeforeCall(pageNum, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getV4NftLockersUsingGET + * @param chainId chainId (required) + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @param poolId poolId (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public okhttp3.Call getV4NftLockersUsingGETCall(String chainId, Integer pageNum, Integer pageSize, String poolId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/open/api/v1/locks/lpv4"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (chainId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("chainId", chainId)); + if (pageNum != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pageNum", pageNum)); + if (pageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pageSize", pageSize)); + if (poolId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("poolId", poolId)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + @Override + public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { + okhttp3.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getV4NftLockersUsingGETValidateBeforeCall(String chainId, Integer pageNum, Integer pageSize, String poolId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'chainId' is set + if (chainId == null) { + throw new ApiException("Missing the required parameter 'chainId' when calling getV4NftLockersUsingGET(Async)"); + } + // verify the required parameter 'pageNum' is set + if (pageNum == null) { + throw new ApiException("Missing the required parameter 'pageNum' when calling getV4NftLockersUsingGET(Async)"); + } + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException("Missing the required parameter 'pageSize' when calling getV4NftLockersUsingGET(Async)"); + } + // verify the required parameter 'poolId' is set + if (poolId == null) { + throw new ApiException("Missing the required parameter 'poolId' when calling getV4NftLockersUsingGET(Async)"); + } + + okhttp3.Call call = getV4NftLockersUsingGETCall(chainId, pageNum, pageSize, poolId, progressListener, progressRequestListener); + return call; + + } + + /** + * get v4 nft locker info + * + * @param chainId chainId (required) + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @param poolId poolId (required) + * @return ResponseWrapperV4LpLockerLockInfoResp + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ResponseWrapperV4LpLockerLockInfoResp getV4NftLockersUsingGET(String chainId, Integer pageNum, Integer pageSize, String poolId) throws ApiException { + ApiResponse resp = getV4NftLockersUsingGETWithHttpInfo(chainId, pageNum, pageSize, poolId); + return resp.getData(); + } + + /** + * get v4 nft locker info + * + * @param chainId chainId (required) + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @param poolId poolId (required) + * @return ApiResponse<ResponseWrapperV4LpLockerLockInfoResp> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getV4NftLockersUsingGETWithHttpInfo(String chainId, Integer pageNum, Integer pageSize, String poolId) throws ApiException { + okhttp3.Call call = getV4NftLockersUsingGETValidateBeforeCall(chainId, pageNum, pageSize, poolId, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * get v4 nft locker info (asynchronously) + * + * @param chainId chainId (required) + * @param pageNum pageNum (required) + * @param pageSize pageSize (required) + * @param poolId poolId (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public okhttp3.Call getV4NftLockersUsingGETAsync(String chainId, Integer pageNum, Integer pageSize, String poolId, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + okhttp3.Call call = getV4NftLockersUsingGETValidateBeforeCall(chainId, pageNum, pageSize, poolId, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } } diff --git a/src/main/java/io/gopluslabs/client/api/SecWareOpenControllerApi.java b/src/main/java/io/gopluslabs/client/api/SecWareOpenControllerApi.java new file mode 100644 index 0000000..6011cf8 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/api/SecWareOpenControllerApi.java @@ -0,0 +1,322 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.api; + +import io.gopluslabs.client.ApiCallback; +import io.gopluslabs.client.ApiClient; +import io.gopluslabs.client.ApiException; +import io.gopluslabs.client.ApiResponse; +import io.gopluslabs.client.Configuration; +import io.gopluslabs.client.Pair; +import io.gopluslabs.client.ProgressRequestBody; +import io.gopluslabs.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.gopluslabs.client.model.ResponseWrapperGetScanResult; +import io.gopluslabs.client.model.ResponseWrapperOpenScanAddressResp; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SecWareOpenControllerApi { + private ApiClient apiClient; + + public SecWareOpenControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public SecWareOpenControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getScanResultUsingGET + * @param requestId request_id (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public okhttp3.Call getScanResultUsingGETCall(String requestId, String authorization, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/v1/address/result"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (requestId != null) + localVarQueryParams.addAll(apiClient.parameterToPair("request_id", requestId)); + + Map localVarHeaderParams = new HashMap(); + if (authorization != null) + localVarHeaderParams.put("Authorization", apiClient.parameterToString(authorization)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + @Override + public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { + okhttp3.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getScanResultUsingGETValidateBeforeCall(String requestId, String authorization, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'requestId' is set + if (requestId == null) { + throw new ApiException("Missing the required parameter 'requestId' when calling getScanResultUsingGET(Async)"); + } + + okhttp3.Call call = getScanResultUsingGETCall(requestId, authorization, progressListener, progressRequestListener); + return call; + + } + + /** + * Get address scan result + * + * @param requestId request_id (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @return ResponseWrapperGetScanResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ResponseWrapperGetScanResult getScanResultUsingGET(String requestId, String authorization) throws ApiException { + ApiResponse resp = getScanResultUsingGETWithHttpInfo(requestId, authorization); + return resp.getData(); + } + + /** + * Get address scan result + * + * @param requestId request_id (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @return ApiResponse<ResponseWrapperGetScanResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getScanResultUsingGETWithHttpInfo(String requestId, String authorization) throws ApiException { + okhttp3.Call call = getScanResultUsingGETValidateBeforeCall(requestId, authorization, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get address scan result (asynchronously) + * + * @param requestId request_id (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public okhttp3.Call getScanResultUsingGETAsync(String requestId, String authorization, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + okhttp3.Call call = getScanResultUsingGETValidateBeforeCall(requestId, authorization, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for scanAddressUsingGET + * @param address address (required) + * @param chainId chain_id (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public okhttp3.Call scanAddressUsingGETCall(String address, String chainId, String authorization, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/v1/address/scan/{chain_id}" + .replaceAll("\\{" + "chain_id" + "\\}", apiClient.escapeString(chainId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (address != null) + localVarQueryParams.addAll(apiClient.parameterToPair("address", address)); + + Map localVarHeaderParams = new HashMap(); + if (authorization != null) + localVarHeaderParams.put("Authorization", apiClient.parameterToString(authorization)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + @Override + public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { + okhttp3.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call scanAddressUsingGETValidateBeforeCall(String address, String chainId, String authorization, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'address' is set + if (address == null) { + throw new ApiException("Missing the required parameter 'address' when calling scanAddressUsingGET(Async)"); + } + // verify the required parameter 'chainId' is set + if (chainId == null) { + throw new ApiException("Missing the required parameter 'chainId' when calling scanAddressUsingGET(Async)"); + } + + okhttp3.Call call = scanAddressUsingGETCall(address, chainId, authorization, progressListener, progressRequestListener); + return call; + + } + + /** + * Start address security scan + * + * @param address address (required) + * @param chainId chain_id (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @return ResponseWrapperOpenScanAddressResp + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ResponseWrapperOpenScanAddressResp scanAddressUsingGET(String address, String chainId, String authorization) throws ApiException { + ApiResponse resp = scanAddressUsingGETWithHttpInfo(address, chainId, authorization); + return resp.getData(); + } + + /** + * Start address security scan + * + * @param address address (required) + * @param chainId chain_id (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @return ApiResponse<ResponseWrapperOpenScanAddressResp> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse scanAddressUsingGETWithHttpInfo(String address, String chainId, String authorization) throws ApiException { + okhttp3.Call call = scanAddressUsingGETValidateBeforeCall(address, chainId, authorization, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Start address security scan (asynchronously) + * + * @param address address (required) + * @param chainId chain_id (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public okhttp3.Call scanAddressUsingGETAsync(String address, String chainId, String authorization, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + okhttp3.Call call = scanAddressUsingGETValidateBeforeCall(address, chainId, authorization, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/io/gopluslabs/client/api/TransactionSecurityControllerApi.java b/src/main/java/io/gopluslabs/client/api/TransactionSecurityControllerApi.java new file mode 100644 index 0000000..fcbee55 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/api/TransactionSecurityControllerApi.java @@ -0,0 +1,183 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.api; + +import io.gopluslabs.client.ApiCallback; +import io.gopluslabs.client.ApiClient; +import io.gopluslabs.client.ApiException; +import io.gopluslabs.client.ApiResponse; +import io.gopluslabs.client.Configuration; +import io.gopluslabs.client.Pair; +import io.gopluslabs.client.ProgressRequestBody; +import io.gopluslabs.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.gopluslabs.client.model.ResponseWrapperTransactionSecurityResponse; +import io.gopluslabs.client.model.TransactionSecurityRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TransactionSecurityControllerApi { + private ApiClient apiClient; + + public TransactionSecurityControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public TransactionSecurityControllerApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for getTransactionSecurityInfoUsingPOST + * @param body transactionSecurityRequest (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public okhttp3.Call getTransactionSecurityInfoUsingPOSTCall(TransactionSecurityRequest body, String authorization, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/api/v1/transaction_simulation"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + if (authorization != null) + localVarHeaderParams.put("Authorization", apiClient.parameterToString(authorization)); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + @Override + public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { + okhttp3.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTransactionSecurityInfoUsingPOSTValidateBeforeCall(TransactionSecurityRequest body, String authorization, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling getTransactionSecurityInfoUsingPOST(Async)"); + } + + okhttp3.Call call = getTransactionSecurityInfoUsingPOSTCall(body, authorization, progressListener, progressRequestListener); + return call; + + } + + /** + * Transaction Simulation + * + * @param body transactionSecurityRequest (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @return ResponseWrapperTransactionSecurityResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ResponseWrapperTransactionSecurityResponse getTransactionSecurityInfoUsingPOST(TransactionSecurityRequest body, String authorization) throws ApiException { + ApiResponse resp = getTransactionSecurityInfoUsingPOSTWithHttpInfo(body, authorization); + return resp.getData(); + } + + /** + * Transaction Simulation + * + * @param body transactionSecurityRequest (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @return ApiResponse<ResponseWrapperTransactionSecurityResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getTransactionSecurityInfoUsingPOSTWithHttpInfo(TransactionSecurityRequest body, String authorization) throws ApiException { + okhttp3.Call call = getTransactionSecurityInfoUsingPOSTValidateBeforeCall(body, authorization, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Transaction Simulation (asynchronously) + * + * @param body transactionSecurityRequest (required) + * @param authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public okhttp3.Call getTransactionSecurityInfoUsingPOSTAsync(TransactionSecurityRequest body, String authorization, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + okhttp3.Call call = getTransactionSecurityInfoUsingPOSTValidateBeforeCall(body, authorization, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/io/gopluslabs/client/model/AddressInfo.java b/src/main/java/io/gopluslabs/client/model/AddressInfo.java new file mode 100644 index 0000000..dbac7fd --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/AddressInfo.java @@ -0,0 +1,125 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * AddressInfo + */ + + + +public class AddressInfo { + @SerializedName("address") + private String address = null; + + @SerializedName("storage_keys") + private List storageKeys = null; + + public AddressInfo address(String address) { + this.address = address; + return this; + } + + /** + * Get address + * @return address + **/ + @Schema(description = "") + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public AddressInfo storageKeys(List storageKeys) { + this.storageKeys = storageKeys; + return this; + } + + public AddressInfo addStorageKeysItem(String storageKeysItem) { + if (this.storageKeys == null) { + this.storageKeys = new ArrayList(); + } + this.storageKeys.add(storageKeysItem); + return this; + } + + /** + * Get storageKeys + * @return storageKeys + **/ + @Schema(description = "") + public List getStorageKeys() { + return storageKeys; + } + + public void setStorageKeys(List storageKeys) { + this.storageKeys = storageKeys; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddressInfo addressInfo = (AddressInfo) o; + return Objects.equals(this.address, addressInfo.address) && + Objects.equals(this.storageKeys, addressInfo.storageKeys); + } + + @Override + public int hashCode() { + return Objects.hash(address, storageKeys); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddressInfo {\n"); + + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" storageKeys: ").append(toIndentedString(storageKeys)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/AllowanceChange.java b/src/main/java/io/gopluslabs/client/model/AllowanceChange.java new file mode 100644 index 0000000..3e75efe --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/AllowanceChange.java @@ -0,0 +1,161 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * AllowanceChange + */ + + + +public class AllowanceChange { + @SerializedName("amount") + private String amount = null; + + @SerializedName("contract_address") + private String contractAddress = null; + + @SerializedName("owner") + private String owner = null; + + @SerializedName("spender") + private String spender = null; + + public AllowanceChange amount(String amount) { + this.amount = amount; + return this; + } + + /** + * Get amount + * @return amount + **/ + @Schema(description = "") + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public AllowanceChange contractAddress(String contractAddress) { + this.contractAddress = contractAddress; + return this; + } + + /** + * Get contractAddress + * @return contractAddress + **/ + @Schema(description = "") + public String getContractAddress() { + return contractAddress; + } + + public void setContractAddress(String contractAddress) { + this.contractAddress = contractAddress; + } + + public AllowanceChange owner(String owner) { + this.owner = owner; + return this; + } + + /** + * Get owner + * @return owner + **/ + @Schema(description = "") + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public AllowanceChange spender(String spender) { + this.spender = spender; + return this; + } + + /** + * Get spender + * @return spender + **/ + @Schema(description = "") + public String getSpender() { + return spender; + } + + public void setSpender(String spender) { + this.spender = spender; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllowanceChange allowanceChange = (AllowanceChange) o; + return Objects.equals(this.amount, allowanceChange.amount) && + Objects.equals(this.contractAddress, allowanceChange.contractAddress) && + Objects.equals(this.owner, allowanceChange.owner) && + Objects.equals(this.spender, allowanceChange.spender); + } + + @Override + public int hashCode() { + return Objects.hash(amount, contractAddress, owner, spender); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AllowanceChange {\n"); + + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" contractAddress: ").append(toIndentedString(contractAddress)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" spender: ").append(toIndentedString(spender)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ERC20BalanceChange.java b/src/main/java/io/gopluslabs/client/model/ERC20BalanceChange.java new file mode 100644 index 0000000..831dfc2 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ERC20BalanceChange.java @@ -0,0 +1,126 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ERC20Change; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * ERC20BalanceChange + */ + + + +public class ERC20BalanceChange { + @SerializedName("address") + private String address = null; + + @SerializedName("erc20_change") + private List erc20Change = null; + + public ERC20BalanceChange address(String address) { + this.address = address; + return this; + } + + /** + * Get address + * @return address + **/ + @Schema(description = "") + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public ERC20BalanceChange erc20Change(List erc20Change) { + this.erc20Change = erc20Change; + return this; + } + + public ERC20BalanceChange addErc20ChangeItem(ERC20Change erc20ChangeItem) { + if (this.erc20Change == null) { + this.erc20Change = new ArrayList(); + } + this.erc20Change.add(erc20ChangeItem); + return this; + } + + /** + * Get erc20Change + * @return erc20Change + **/ + @Schema(description = "") + public List getErc20Change() { + return erc20Change; + } + + public void setErc20Change(List erc20Change) { + this.erc20Change = erc20Change; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ERC20BalanceChange erC20BalanceChange = (ERC20BalanceChange) o; + return Objects.equals(this.address, erC20BalanceChange.address) && + Objects.equals(this.erc20Change, erC20BalanceChange.erc20Change); + } + + @Override + public int hashCode() { + return Objects.hash(address, erc20Change); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ERC20BalanceChange {\n"); + + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" erc20Change: ").append(toIndentedString(erc20Change)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ERC20Change.java b/src/main/java/io/gopluslabs/client/model/ERC20Change.java new file mode 100644 index 0000000..d8074e8 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ERC20Change.java @@ -0,0 +1,115 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ERC20Change + */ + + + +public class ERC20Change { + @SerializedName("change") + private String change = null; + + @SerializedName("token_address") + private String tokenAddress = null; + + public ERC20Change change(String change) { + this.change = change; + return this; + } + + /** + * Get change + * @return change + **/ + @Schema(description = "") + public String getChange() { + return change; + } + + public void setChange(String change) { + this.change = change; + } + + public ERC20Change tokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + return this; + } + + /** + * Get tokenAddress + * @return tokenAddress + **/ + @Schema(description = "") + public String getTokenAddress() { + return tokenAddress; + } + + public void setTokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ERC20Change erC20Change = (ERC20Change) o; + return Objects.equals(this.change, erC20Change.change) && + Objects.equals(this.tokenAddress, erC20Change.tokenAddress); + } + + @Override + public int hashCode() { + return Objects.hash(change, tokenAddress); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ERC20Change {\n"); + + sb.append(" change: ").append(toIndentedString(change)).append("\n"); + sb.append(" tokenAddress: ").append(toIndentedString(tokenAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ERC721BalanceChange.java b/src/main/java/io/gopluslabs/client/model/ERC721BalanceChange.java new file mode 100644 index 0000000..cce8f44 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ERC721BalanceChange.java @@ -0,0 +1,126 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ERC721Change; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * ERC721BalanceChange + */ + + + +public class ERC721BalanceChange { + @SerializedName("address") + private String address = null; + + @SerializedName("erc721_change") + private List erc721Change = null; + + public ERC721BalanceChange address(String address) { + this.address = address; + return this; + } + + /** + * Get address + * @return address + **/ + @Schema(description = "") + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public ERC721BalanceChange erc721Change(List erc721Change) { + this.erc721Change = erc721Change; + return this; + } + + public ERC721BalanceChange addErc721ChangeItem(ERC721Change erc721ChangeItem) { + if (this.erc721Change == null) { + this.erc721Change = new ArrayList(); + } + this.erc721Change.add(erc721ChangeItem); + return this; + } + + /** + * Get erc721Change + * @return erc721Change + **/ + @Schema(description = "") + public List getErc721Change() { + return erc721Change; + } + + public void setErc721Change(List erc721Change) { + this.erc721Change = erc721Change; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ERC721BalanceChange erC721BalanceChange = (ERC721BalanceChange) o; + return Objects.equals(this.address, erC721BalanceChange.address) && + Objects.equals(this.erc721Change, erC721BalanceChange.erc721Change); + } + + @Override + public int hashCode() { + return Objects.hash(address, erc721Change); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ERC721BalanceChange {\n"); + + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" erc721Change: ").append(toIndentedString(erc721Change)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ERC721Change.java b/src/main/java/io/gopluslabs/client/model/ERC721Change.java new file mode 100644 index 0000000..20b6ca6 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ERC721Change.java @@ -0,0 +1,138 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ERC721Change + */ + + + +public class ERC721Change { + @SerializedName("received") + private Boolean received = null; + + @SerializedName("token_address") + private String tokenAddress = null; + + @SerializedName("token_id") + private String tokenId = null; + + public ERC721Change received(Boolean received) { + this.received = received; + return this; + } + + /** + * Get received + * @return received + **/ + @Schema(description = "") + public Boolean isReceived() { + return received; + } + + public void setReceived(Boolean received) { + this.received = received; + } + + public ERC721Change tokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + return this; + } + + /** + * Get tokenAddress + * @return tokenAddress + **/ + @Schema(description = "") + public String getTokenAddress() { + return tokenAddress; + } + + public void setTokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + } + + public ERC721Change tokenId(String tokenId) { + this.tokenId = tokenId; + return this; + } + + /** + * Get tokenId + * @return tokenId + **/ + @Schema(description = "") + public String getTokenId() { + return tokenId; + } + + public void setTokenId(String tokenId) { + this.tokenId = tokenId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ERC721Change erC721Change = (ERC721Change) o; + return Objects.equals(this.received, erC721Change.received) && + Objects.equals(this.tokenAddress, erC721Change.tokenAddress) && + Objects.equals(this.tokenId, erC721Change.tokenId); + } + + @Override + public int hashCode() { + return Objects.hash(received, tokenAddress, tokenId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ERC721Change {\n"); + + sb.append(" received: ").append(toIndentedString(received)).append("\n"); + sb.append(" tokenAddress: ").append(toIndentedString(tokenAddress)).append("\n"); + sb.append(" tokenId: ").append(toIndentedString(tokenId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/Flag.java b/src/main/java/io/gopluslabs/client/model/Flag.java new file mode 100644 index 0000000..70b2ecc --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/Flag.java @@ -0,0 +1,115 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * Flag + */ + + + +public class Flag { + @SerializedName("message") + private String message = null; + + @SerializedName("type") + private String type = null; + + public Flag message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @Schema(description = "") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Flag type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @Schema(description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Flag flag = (Flag) o; + return Objects.equals(this.message, flag.message) && + Objects.equals(this.type, flag.type); + } + + @Override + public int hashCode() { + return Objects.hash(message, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Flag {\n"); + + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/LogEntry.java b/src/main/java/io/gopluslabs/client/model/LogEntry.java new file mode 100644 index 0000000..4bad6dd --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/LogEntry.java @@ -0,0 +1,148 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * LogEntry + */ + + + +public class LogEntry { + @SerializedName("address") + private String address = null; + + @SerializedName("data") + private String data = null; + + @SerializedName("topics") + private List topics = null; + + public LogEntry address(String address) { + this.address = address; + return this; + } + + /** + * Get address + * @return address + **/ + @Schema(description = "") + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public LogEntry data(String data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public LogEntry topics(List topics) { + this.topics = topics; + return this; + } + + public LogEntry addTopicsItem(String topicsItem) { + if (this.topics == null) { + this.topics = new ArrayList(); + } + this.topics.add(topicsItem); + return this; + } + + /** + * Get topics + * @return topics + **/ + @Schema(description = "") + public List getTopics() { + return topics; + } + + public void setTopics(List topics) { + this.topics = topics; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogEntry logEntry = (LogEntry) o; + return Objects.equals(this.address, logEntry.address) && + Objects.equals(this.data, logEntry.data) && + Objects.equals(this.topics, logEntry.topics); + } + + @Override + public int hashCode() { + return Objects.hash(address, data, topics); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogEntry {\n"); + + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" topics: ").append(toIndentedString(topics)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/NativeBalanceChange.java b/src/main/java/io/gopluslabs/client/model/NativeBalanceChange.java new file mode 100644 index 0000000..e916a56 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/NativeBalanceChange.java @@ -0,0 +1,116 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.NativeChange; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * NativeBalanceChange + */ + + + +public class NativeBalanceChange { + @SerializedName("address") + private String address = null; + + @SerializedName("native_change") + private NativeChange nativeChange = null; + + public NativeBalanceChange address(String address) { + this.address = address; + return this; + } + + /** + * Get address + * @return address + **/ + @Schema(description = "") + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public NativeBalanceChange nativeChange(NativeChange nativeChange) { + this.nativeChange = nativeChange; + return this; + } + + /** + * Get nativeChange + * @return nativeChange + **/ + @Schema(description = "") + public NativeChange getNativeChange() { + return nativeChange; + } + + public void setNativeChange(NativeChange nativeChange) { + this.nativeChange = nativeChange; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NativeBalanceChange nativeBalanceChange = (NativeBalanceChange) o; + return Objects.equals(this.address, nativeBalanceChange.address) && + Objects.equals(this.nativeChange, nativeBalanceChange.nativeChange); + } + + @Override + public int hashCode() { + return Objects.hash(address, nativeChange); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NativeBalanceChange {\n"); + + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" nativeChange: ").append(toIndentedString(nativeChange)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/NativeChange.java b/src/main/java/io/gopluslabs/client/model/NativeChange.java new file mode 100644 index 0000000..41025a5 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/NativeChange.java @@ -0,0 +1,138 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * NativeChange + */ + + + +public class NativeChange { + @SerializedName("after") + private String after = null; + + @SerializedName("before") + private String before = null; + + @SerializedName("change") + private String change = null; + + public NativeChange after(String after) { + this.after = after; + return this; + } + + /** + * Get after + * @return after + **/ + @Schema(description = "") + public String getAfter() { + return after; + } + + public void setAfter(String after) { + this.after = after; + } + + public NativeChange before(String before) { + this.before = before; + return this; + } + + /** + * Get before + * @return before + **/ + @Schema(description = "") + public String getBefore() { + return before; + } + + public void setBefore(String before) { + this.before = before; + } + + public NativeChange change(String change) { + this.change = change; + return this; + } + + /** + * Get change + * @return change + **/ + @Schema(description = "") + public String getChange() { + return change; + } + + public void setChange(String change) { + this.change = change; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NativeChange nativeChange = (NativeChange) o; + return Objects.equals(this.after, nativeChange.after) && + Objects.equals(this.before, nativeChange.before) && + Objects.equals(this.change, nativeChange.change); + } + + @Override + public int hashCode() { + return Objects.hash(after, before, change); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NativeChange {\n"); + + sb.append(" after: ").append(toIndentedString(after)).append("\n"); + sb.append(" before: ").append(toIndentedString(before)).append("\n"); + sb.append(" change: ").append(toIndentedString(change)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/OpenScanAddressResp.java b/src/main/java/io/gopluslabs/client/model/OpenScanAddressResp.java new file mode 100644 index 0000000..deca664 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/OpenScanAddressResp.java @@ -0,0 +1,115 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * OpenScanAddressResp + */ + + + +public class OpenScanAddressResp { + @SerializedName("request_id") + private String requestId = null; + + @SerializedName("status") + private Boolean status = null; + + public OpenScanAddressResp requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get requestId + * @return requestId + **/ + @Schema(description = "") + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public OpenScanAddressResp status(Boolean status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public Boolean isStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenScanAddressResp openScanAddressResp = (OpenScanAddressResp) o; + return Objects.equals(this.requestId, openScanAddressResp.requestId) && + Objects.equals(this.status, openScanAddressResp.status); + } + + @Override + public int hashCode() { + return Objects.hash(requestId, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenScanAddressResp {\n"); + + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/PageResponseTaNftLockerLockInfo.java b/src/main/java/io/gopluslabs/client/model/PageResponseTaNftLockerLockInfo.java new file mode 100644 index 0000000..c0df855 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/PageResponseTaNftLockerLockInfo.java @@ -0,0 +1,172 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.TaNftLockerLockInfo; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * PageResponseTaNftLockerLockInfo + */ + + + +public class PageResponseTaNftLockerLockInfo { + @SerializedName("list") + private List list = null; + + @SerializedName("pageNum") + private Integer pageNum = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("totalCount") + private Integer totalCount = null; + + public PageResponseTaNftLockerLockInfo list(List list) { + this.list = list; + return this; + } + + public PageResponseTaNftLockerLockInfo addListItem(TaNftLockerLockInfo listItem) { + if (this.list == null) { + this.list = new ArrayList(); + } + this.list.add(listItem); + return this; + } + + /** + * Get list + * @return list + **/ + @Schema(description = "") + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public PageResponseTaNftLockerLockInfo pageNum(Integer pageNum) { + this.pageNum = pageNum; + return this; + } + + /** + * Get pageNum + * @return pageNum + **/ + @Schema(description = "") + public Integer getPageNum() { + return pageNum; + } + + public void setPageNum(Integer pageNum) { + this.pageNum = pageNum; + } + + public PageResponseTaNftLockerLockInfo pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public PageResponseTaNftLockerLockInfo totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageResponseTaNftLockerLockInfo pageResponseTaNftLockerLockInfo = (PageResponseTaNftLockerLockInfo) o; + return Objects.equals(this.list, pageResponseTaNftLockerLockInfo.list) && + Objects.equals(this.pageNum, pageResponseTaNftLockerLockInfo.pageNum) && + Objects.equals(this.pageSize, pageResponseTaNftLockerLockInfo.pageSize) && + Objects.equals(this.totalCount, pageResponseTaNftLockerLockInfo.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(list, pageNum, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResponseTaNftLockerLockInfo {\n"); + + sb.append(" list: ").append(toIndentedString(list)).append("\n"); + sb.append(" pageNum: ").append(toIndentedString(pageNum)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/PageResponseTaTokenLockerLockInfo.java b/src/main/java/io/gopluslabs/client/model/PageResponseTaTokenLockerLockInfo.java new file mode 100644 index 0000000..e878880 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/PageResponseTaTokenLockerLockInfo.java @@ -0,0 +1,172 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.TaTokenLockerLockInfo; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * PageResponseTaTokenLockerLockInfo + */ + + + +public class PageResponseTaTokenLockerLockInfo { + @SerializedName("list") + private List list = null; + + @SerializedName("pageNum") + private Integer pageNum = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("totalCount") + private Integer totalCount = null; + + public PageResponseTaTokenLockerLockInfo list(List list) { + this.list = list; + return this; + } + + public PageResponseTaTokenLockerLockInfo addListItem(TaTokenLockerLockInfo listItem) { + if (this.list == null) { + this.list = new ArrayList(); + } + this.list.add(listItem); + return this; + } + + /** + * Get list + * @return list + **/ + @Schema(description = "") + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public PageResponseTaTokenLockerLockInfo pageNum(Integer pageNum) { + this.pageNum = pageNum; + return this; + } + + /** + * Get pageNum + * @return pageNum + **/ + @Schema(description = "") + public Integer getPageNum() { + return pageNum; + } + + public void setPageNum(Integer pageNum) { + this.pageNum = pageNum; + } + + public PageResponseTaTokenLockerLockInfo pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public PageResponseTaTokenLockerLockInfo totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageResponseTaTokenLockerLockInfo pageResponseTaTokenLockerLockInfo = (PageResponseTaTokenLockerLockInfo) o; + return Objects.equals(this.list, pageResponseTaTokenLockerLockInfo.list) && + Objects.equals(this.pageNum, pageResponseTaTokenLockerLockInfo.pageNum) && + Objects.equals(this.pageSize, pageResponseTaTokenLockerLockInfo.pageSize) && + Objects.equals(this.totalCount, pageResponseTaTokenLockerLockInfo.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(list, pageNum, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResponseTaTokenLockerLockInfo {\n"); + + sb.append(" list: ").append(toIndentedString(list)).append("\n"); + sb.append(" pageNum: ").append(toIndentedString(pageNum)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/PageResponseV4NftLockerLockInfos.java b/src/main/java/io/gopluslabs/client/model/PageResponseV4NftLockerLockInfos.java new file mode 100644 index 0000000..2b85ad0 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/PageResponseV4NftLockerLockInfos.java @@ -0,0 +1,172 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.V4NftLockerLockInfos; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * PageResponseV4NftLockerLockInfos + */ + + + +public class PageResponseV4NftLockerLockInfos { + @SerializedName("list") + private List list = null; + + @SerializedName("pageNum") + private Integer pageNum = null; + + @SerializedName("pageSize") + private Integer pageSize = null; + + @SerializedName("totalCount") + private Integer totalCount = null; + + public PageResponseV4NftLockerLockInfos list(List list) { + this.list = list; + return this; + } + + public PageResponseV4NftLockerLockInfos addListItem(V4NftLockerLockInfos listItem) { + if (this.list == null) { + this.list = new ArrayList(); + } + this.list.add(listItem); + return this; + } + + /** + * Get list + * @return list + **/ + @Schema(description = "") + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public PageResponseV4NftLockerLockInfos pageNum(Integer pageNum) { + this.pageNum = pageNum; + return this; + } + + /** + * Get pageNum + * @return pageNum + **/ + @Schema(description = "") + public Integer getPageNum() { + return pageNum; + } + + public void setPageNum(Integer pageNum) { + this.pageNum = pageNum; + } + + public PageResponseV4NftLockerLockInfos pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public PageResponseV4NftLockerLockInfos totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PageResponseV4NftLockerLockInfos pageResponseV4NftLockerLockInfos = (PageResponseV4NftLockerLockInfos) o; + return Objects.equals(this.list, pageResponseV4NftLockerLockInfos.list) && + Objects.equals(this.pageNum, pageResponseV4NftLockerLockInfos.pageNum) && + Objects.equals(this.pageSize, pageResponseV4NftLockerLockInfos.pageSize) && + Objects.equals(this.totalCount, pageResponseV4NftLockerLockInfos.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(list, pageNum, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PageResponseV4NftLockerLockInfos {\n"); + + sb.append(" list: ").append(toIndentedString(list)).append("\n"); + sb.append(" pageNum: ").append(toIndentedString(pageNum)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResult.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResult.java new file mode 100644 index 0000000..b49b256 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResult.java @@ -0,0 +1,139 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResult; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperGetScanResult + */ + + + +public class ResponseWrapperGetScanResult { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("result") + private ResponseWrapperGetScanResultResult result = null; + + public ResponseWrapperGetScanResult code(Integer code) { + this.code = code; + return this; + } + + /** + * Code 1:Success + * @return code + **/ + @Schema(description = "Code 1:Success") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public ResponseWrapperGetScanResult message(String message) { + this.message = message; + return this; + } + + /** + * Response message + * @return message + **/ + @Schema(description = "Response message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ResponseWrapperGetScanResult result(ResponseWrapperGetScanResultResult result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResult getResult() { + return result; + } + + public void setResult(ResponseWrapperGetScanResultResult result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResult responseWrapperGetScanResult = (ResponseWrapperGetScanResult) o; + return Objects.equals(this.code, responseWrapperGetScanResult.code) && + Objects.equals(this.message, responseWrapperGetScanResult.message) && + Objects.equals(this.result, responseWrapperGetScanResult.result); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResult {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResult.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResult.java new file mode 100644 index 0000000..b929c0f --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResult.java @@ -0,0 +1,372 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultAddressPoisoned; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultApprovalRisk; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultStablecoinDepeg; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultTokenAttention; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * Response result + */ +@Schema(description = "Response result") + + +public class ResponseWrapperGetScanResultResult { + @SerializedName("chain_id") + private String chainId = null; + + @SerializedName("approval_risk") + private ResponseWrapperGetScanResultResultApprovalRisk approvalRisk = null; + + @SerializedName("token_attention") + private ResponseWrapperGetScanResultResultTokenAttention tokenAttention = null; + + @SerializedName("nft_attention") + private ResponseWrapperGetScanResultResultTokenAttention nftAttention = null; + + @SerializedName("stablecoin_depeg") + private ResponseWrapperGetScanResultResultStablecoinDepeg stablecoinDepeg = null; + + @SerializedName("address_poisoned") + private ResponseWrapperGetScanResultResultAddressPoisoned addressPoisoned = null; + + @SerializedName("excessive_gas_fee") + private ResponseWrapperGetScanResultResultAddressPoisoned excessiveGasFee = null; + + @SerializedName("nft_risk") + private ResponseWrapperGetScanResultResultTokenAttention nftRisk = null; + + @SerializedName("nft_stolen") + private ResponseWrapperGetScanResultResultAddressPoisoned nftStolen = null; + + @SerializedName("scan_time") + private String scanTime = null; + + @SerializedName("request_id") + private String requestId = null; + + @SerializedName("token_risk") + private ResponseWrapperGetScanResultResultTokenAttention tokenRisk = null; + + @SerializedName("risky_address_interaction") + private ResponseWrapperGetScanResultResultAddressPoisoned riskyAddressInteraction = null; + + public ResponseWrapperGetScanResultResult chainId(String chainId) { + this.chainId = chainId; + return this; + } + + /** + * Chain ID + * @return chainId + **/ + @Schema(description = "Chain ID") + public String getChainId() { + return chainId; + } + + public void setChainId(String chainId) { + this.chainId = chainId; + } + + public ResponseWrapperGetScanResultResult approvalRisk(ResponseWrapperGetScanResultResultApprovalRisk approvalRisk) { + this.approvalRisk = approvalRisk; + return this; + } + + /** + * Get approvalRisk + * @return approvalRisk + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultApprovalRisk getApprovalRisk() { + return approvalRisk; + } + + public void setApprovalRisk(ResponseWrapperGetScanResultResultApprovalRisk approvalRisk) { + this.approvalRisk = approvalRisk; + } + + public ResponseWrapperGetScanResultResult tokenAttention(ResponseWrapperGetScanResultResultTokenAttention tokenAttention) { + this.tokenAttention = tokenAttention; + return this; + } + + /** + * Get tokenAttention + * @return tokenAttention + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultTokenAttention getTokenAttention() { + return tokenAttention; + } + + public void setTokenAttention(ResponseWrapperGetScanResultResultTokenAttention tokenAttention) { + this.tokenAttention = tokenAttention; + } + + public ResponseWrapperGetScanResultResult nftAttention(ResponseWrapperGetScanResultResultTokenAttention nftAttention) { + this.nftAttention = nftAttention; + return this; + } + + /** + * Get nftAttention + * @return nftAttention + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultTokenAttention getNftAttention() { + return nftAttention; + } + + public void setNftAttention(ResponseWrapperGetScanResultResultTokenAttention nftAttention) { + this.nftAttention = nftAttention; + } + + public ResponseWrapperGetScanResultResult stablecoinDepeg(ResponseWrapperGetScanResultResultStablecoinDepeg stablecoinDepeg) { + this.stablecoinDepeg = stablecoinDepeg; + return this; + } + + /** + * Get stablecoinDepeg + * @return stablecoinDepeg + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultStablecoinDepeg getStablecoinDepeg() { + return stablecoinDepeg; + } + + public void setStablecoinDepeg(ResponseWrapperGetScanResultResultStablecoinDepeg stablecoinDepeg) { + this.stablecoinDepeg = stablecoinDepeg; + } + + public ResponseWrapperGetScanResultResult addressPoisoned(ResponseWrapperGetScanResultResultAddressPoisoned addressPoisoned) { + this.addressPoisoned = addressPoisoned; + return this; + } + + /** + * Get addressPoisoned + * @return addressPoisoned + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultAddressPoisoned getAddressPoisoned() { + return addressPoisoned; + } + + public void setAddressPoisoned(ResponseWrapperGetScanResultResultAddressPoisoned addressPoisoned) { + this.addressPoisoned = addressPoisoned; + } + + public ResponseWrapperGetScanResultResult excessiveGasFee(ResponseWrapperGetScanResultResultAddressPoisoned excessiveGasFee) { + this.excessiveGasFee = excessiveGasFee; + return this; + } + + /** + * Get excessiveGasFee + * @return excessiveGasFee + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultAddressPoisoned getExcessiveGasFee() { + return excessiveGasFee; + } + + public void setExcessiveGasFee(ResponseWrapperGetScanResultResultAddressPoisoned excessiveGasFee) { + this.excessiveGasFee = excessiveGasFee; + } + + public ResponseWrapperGetScanResultResult nftRisk(ResponseWrapperGetScanResultResultTokenAttention nftRisk) { + this.nftRisk = nftRisk; + return this; + } + + /** + * Get nftRisk + * @return nftRisk + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultTokenAttention getNftRisk() { + return nftRisk; + } + + public void setNftRisk(ResponseWrapperGetScanResultResultTokenAttention nftRisk) { + this.nftRisk = nftRisk; + } + + public ResponseWrapperGetScanResultResult nftStolen(ResponseWrapperGetScanResultResultAddressPoisoned nftStolen) { + this.nftStolen = nftStolen; + return this; + } + + /** + * Get nftStolen + * @return nftStolen + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultAddressPoisoned getNftStolen() { + return nftStolen; + } + + public void setNftStolen(ResponseWrapperGetScanResultResultAddressPoisoned nftStolen) { + this.nftStolen = nftStolen; + } + + public ResponseWrapperGetScanResultResult scanTime(String scanTime) { + this.scanTime = scanTime; + return this; + } + + /** + * Scan initiation time. UTC+0. + * @return scanTime + **/ + @Schema(description = "Scan initiation time. UTC+0.") + public String getScanTime() { + return scanTime; + } + + public void setScanTime(String scanTime) { + this.scanTime = scanTime; + } + + public ResponseWrapperGetScanResultResult requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Request ID + * @return requestId + **/ + @Schema(description = "Request ID") + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ResponseWrapperGetScanResultResult tokenRisk(ResponseWrapperGetScanResultResultTokenAttention tokenRisk) { + this.tokenRisk = tokenRisk; + return this; + } + + /** + * Get tokenRisk + * @return tokenRisk + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultTokenAttention getTokenRisk() { + return tokenRisk; + } + + public void setTokenRisk(ResponseWrapperGetScanResultResultTokenAttention tokenRisk) { + this.tokenRisk = tokenRisk; + } + + public ResponseWrapperGetScanResultResult riskyAddressInteraction(ResponseWrapperGetScanResultResultAddressPoisoned riskyAddressInteraction) { + this.riskyAddressInteraction = riskyAddressInteraction; + return this; + } + + /** + * Get riskyAddressInteraction + * @return riskyAddressInteraction + **/ + @Schema(description = "") + public ResponseWrapperGetScanResultResultAddressPoisoned getRiskyAddressInteraction() { + return riskyAddressInteraction; + } + + public void setRiskyAddressInteraction(ResponseWrapperGetScanResultResultAddressPoisoned riskyAddressInteraction) { + this.riskyAddressInteraction = riskyAddressInteraction; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResult responseWrapperGetScanResultResult = (ResponseWrapperGetScanResultResult) o; + return Objects.equals(this.chainId, responseWrapperGetScanResultResult.chainId) && + Objects.equals(this.approvalRisk, responseWrapperGetScanResultResult.approvalRisk) && + Objects.equals(this.tokenAttention, responseWrapperGetScanResultResult.tokenAttention) && + Objects.equals(this.nftAttention, responseWrapperGetScanResultResult.nftAttention) && + Objects.equals(this.stablecoinDepeg, responseWrapperGetScanResultResult.stablecoinDepeg) && + Objects.equals(this.addressPoisoned, responseWrapperGetScanResultResult.addressPoisoned) && + Objects.equals(this.excessiveGasFee, responseWrapperGetScanResultResult.excessiveGasFee) && + Objects.equals(this.nftRisk, responseWrapperGetScanResultResult.nftRisk) && + Objects.equals(this.nftStolen, responseWrapperGetScanResultResult.nftStolen) && + Objects.equals(this.scanTime, responseWrapperGetScanResultResult.scanTime) && + Objects.equals(this.requestId, responseWrapperGetScanResultResult.requestId) && + Objects.equals(this.tokenRisk, responseWrapperGetScanResultResult.tokenRisk) && + Objects.equals(this.riskyAddressInteraction, responseWrapperGetScanResultResult.riskyAddressInteraction); + } + + @Override + public int hashCode() { + return Objects.hash(chainId, approvalRisk, tokenAttention, nftAttention, stablecoinDepeg, addressPoisoned, excessiveGasFee, nftRisk, nftStolen, scanTime, requestId, tokenRisk, riskyAddressInteraction); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResult {\n"); + + sb.append(" chainId: ").append(toIndentedString(chainId)).append("\n"); + sb.append(" approvalRisk: ").append(toIndentedString(approvalRisk)).append("\n"); + sb.append(" tokenAttention: ").append(toIndentedString(tokenAttention)).append("\n"); + sb.append(" nftAttention: ").append(toIndentedString(nftAttention)).append("\n"); + sb.append(" stablecoinDepeg: ").append(toIndentedString(stablecoinDepeg)).append("\n"); + sb.append(" addressPoisoned: ").append(toIndentedString(addressPoisoned)).append("\n"); + sb.append(" excessiveGasFee: ").append(toIndentedString(excessiveGasFee)).append("\n"); + sb.append(" nftRisk: ").append(toIndentedString(nftRisk)).append("\n"); + sb.append(" nftStolen: ").append(toIndentedString(nftStolen)).append("\n"); + sb.append(" scanTime: ").append(toIndentedString(scanTime)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" tokenRisk: ").append(toIndentedString(tokenRisk)).append("\n"); + sb.append(" riskyAddressInteraction: ").append(toIndentedString(riskyAddressInteraction)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultAddressPoisoned.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultAddressPoisoned.java new file mode 100644 index 0000000..ea67d03 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultAddressPoisoned.java @@ -0,0 +1,126 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * ResponseWrapperGetScanResultResultAddressPoisoned + */ + + + +public class ResponseWrapperGetScanResultResultAddressPoisoned { + @SerializedName("risk_num") + private Integer riskNum = null; + + @SerializedName("risk_detail") + private List riskDetail = null; + + public ResponseWrapperGetScanResultResultAddressPoisoned riskNum(Integer riskNum) { + this.riskNum = riskNum; + return this; + } + + /** + * Get riskNum + * @return riskNum + **/ + @Schema(description = "") + public Integer getRiskNum() { + return riskNum; + } + + public void setRiskNum(Integer riskNum) { + this.riskNum = riskNum; + } + + public ResponseWrapperGetScanResultResultAddressPoisoned riskDetail(List riskDetail) { + this.riskDetail = riskDetail; + return this; + } + + public ResponseWrapperGetScanResultResultAddressPoisoned addRiskDetailItem(ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail riskDetailItem) { + if (this.riskDetail == null) { + this.riskDetail = new ArrayList(); + } + this.riskDetail.add(riskDetailItem); + return this; + } + + /** + * Get riskDetail + * @return riskDetail + **/ + @Schema(description = "") + public List getRiskDetail() { + return riskDetail; + } + + public void setRiskDetail(List riskDetail) { + this.riskDetail = riskDetail; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultAddressPoisoned responseWrapperGetScanResultResultAddressPoisoned = (ResponseWrapperGetScanResultResultAddressPoisoned) o; + return Objects.equals(this.riskNum, responseWrapperGetScanResultResultAddressPoisoned.riskNum) && + Objects.equals(this.riskDetail, responseWrapperGetScanResultResultAddressPoisoned.riskDetail); + } + + @Override + public int hashCode() { + return Objects.hash(riskNum, riskDetail); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultAddressPoisoned {\n"); + + sb.append(" riskNum: ").append(toIndentedString(riskNum)).append("\n"); + sb.append(" riskDetail: ").append(toIndentedString(riskDetail)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail.java new file mode 100644 index 0000000..1912d89 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail.java @@ -0,0 +1,115 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail + */ + + + +public class ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail { + @SerializedName("transaction_time") + private String transactionTime = null; + + @SerializedName("transaction_hash") + private String transactionHash = null; + + public ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail transactionTime(String transactionTime) { + this.transactionTime = transactionTime; + return this; + } + + /** + * Get transactionTime + * @return transactionTime + **/ + @Schema(description = "") + public String getTransactionTime() { + return transactionTime; + } + + public void setTransactionTime(String transactionTime) { + this.transactionTime = transactionTime; + } + + public ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail transactionHash(String transactionHash) { + this.transactionHash = transactionHash; + return this; + } + + /** + * Get transactionHash + * @return transactionHash + **/ + @Schema(description = "") + public String getTransactionHash() { + return transactionHash; + } + + public void setTransactionHash(String transactionHash) { + this.transactionHash = transactionHash; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail responseWrapperGetScanResultResultAddressPoisonedRiskDetail = (ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail) o; + return Objects.equals(this.transactionTime, responseWrapperGetScanResultResultAddressPoisonedRiskDetail.transactionTime) && + Objects.equals(this.transactionHash, responseWrapperGetScanResultResultAddressPoisonedRiskDetail.transactionHash); + } + + @Override + public int hashCode() { + return Objects.hash(transactionTime, transactionHash); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail {\n"); + + sb.append(" transactionTime: ").append(toIndentedString(transactionTime)).append("\n"); + sb.append(" transactionHash: ").append(toIndentedString(transactionHash)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRisk.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRisk.java new file mode 100644 index 0000000..0728d80 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRisk.java @@ -0,0 +1,126 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultApprovalRiskRiskDetail; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * ResponseWrapperGetScanResultResultApprovalRisk + */ + + + +public class ResponseWrapperGetScanResultResultApprovalRisk { + @SerializedName("risk_num") + private Integer riskNum = null; + + @SerializedName("risk_detail") + private List riskDetail = null; + + public ResponseWrapperGetScanResultResultApprovalRisk riskNum(Integer riskNum) { + this.riskNum = riskNum; + return this; + } + + /** + * Get riskNum + * @return riskNum + **/ + @Schema(description = "") + public Integer getRiskNum() { + return riskNum; + } + + public void setRiskNum(Integer riskNum) { + this.riskNum = riskNum; + } + + public ResponseWrapperGetScanResultResultApprovalRisk riskDetail(List riskDetail) { + this.riskDetail = riskDetail; + return this; + } + + public ResponseWrapperGetScanResultResultApprovalRisk addRiskDetailItem(ResponseWrapperGetScanResultResultApprovalRiskRiskDetail riskDetailItem) { + if (this.riskDetail == null) { + this.riskDetail = new ArrayList(); + } + this.riskDetail.add(riskDetailItem); + return this; + } + + /** + * Get riskDetail + * @return riskDetail + **/ + @Schema(description = "") + public List getRiskDetail() { + return riskDetail; + } + + public void setRiskDetail(List riskDetail) { + this.riskDetail = riskDetail; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultApprovalRisk responseWrapperGetScanResultResultApprovalRisk = (ResponseWrapperGetScanResultResultApprovalRisk) o; + return Objects.equals(this.riskNum, responseWrapperGetScanResultResultApprovalRisk.riskNum) && + Objects.equals(this.riskDetail, responseWrapperGetScanResultResultApprovalRisk.riskDetail); + } + + @Override + public int hashCode() { + return Objects.hash(riskNum, riskDetail); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultApprovalRisk {\n"); + + sb.append(" riskNum: ").append(toIndentedString(riskNum)).append("\n"); + sb.append(" riskDetail: ").append(toIndentedString(riskDetail)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRiskErc20Risk.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRiskErc20Risk.java new file mode 100644 index 0000000..f743143 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRiskErc20Risk.java @@ -0,0 +1,207 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperGetScanResultResultApprovalRiskErc20Risk + */ + + + +public class ResponseWrapperGetScanResultResultApprovalRiskErc20Risk { + @SerializedName("transaction_time") + private String transactionTime = null; + + @SerializedName("token_address") + private String tokenAddress = null; + + @SerializedName("token_symbol") + private String tokenSymbol = null; + + @SerializedName("approved_amount") + private String approvedAmount = null; + + @SerializedName("transaction_hash") + private String transactionHash = null; + + @SerializedName("approved_address") + private String approvedAddress = null; + + public ResponseWrapperGetScanResultResultApprovalRiskErc20Risk transactionTime(String transactionTime) { + this.transactionTime = transactionTime; + return this; + } + + /** + * Get transactionTime + * @return transactionTime + **/ + @Schema(description = "") + public String getTransactionTime() { + return transactionTime; + } + + public void setTransactionTime(String transactionTime) { + this.transactionTime = transactionTime; + } + + public ResponseWrapperGetScanResultResultApprovalRiskErc20Risk tokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + return this; + } + + /** + * Get tokenAddress + * @return tokenAddress + **/ + @Schema(description = "") + public String getTokenAddress() { + return tokenAddress; + } + + public void setTokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + } + + public ResponseWrapperGetScanResultResultApprovalRiskErc20Risk tokenSymbol(String tokenSymbol) { + this.tokenSymbol = tokenSymbol; + return this; + } + + /** + * Get tokenSymbol + * @return tokenSymbol + **/ + @Schema(description = "") + public String getTokenSymbol() { + return tokenSymbol; + } + + public void setTokenSymbol(String tokenSymbol) { + this.tokenSymbol = tokenSymbol; + } + + public ResponseWrapperGetScanResultResultApprovalRiskErc20Risk approvedAmount(String approvedAmount) { + this.approvedAmount = approvedAmount; + return this; + } + + /** + * Get approvedAmount + * @return approvedAmount + **/ + @Schema(description = "") + public String getApprovedAmount() { + return approvedAmount; + } + + public void setApprovedAmount(String approvedAmount) { + this.approvedAmount = approvedAmount; + } + + public ResponseWrapperGetScanResultResultApprovalRiskErc20Risk transactionHash(String transactionHash) { + this.transactionHash = transactionHash; + return this; + } + + /** + * Get transactionHash + * @return transactionHash + **/ + @Schema(description = "") + public String getTransactionHash() { + return transactionHash; + } + + public void setTransactionHash(String transactionHash) { + this.transactionHash = transactionHash; + } + + public ResponseWrapperGetScanResultResultApprovalRiskErc20Risk approvedAddress(String approvedAddress) { + this.approvedAddress = approvedAddress; + return this; + } + + /** + * Get approvedAddress + * @return approvedAddress + **/ + @Schema(description = "") + public String getApprovedAddress() { + return approvedAddress; + } + + public void setApprovedAddress(String approvedAddress) { + this.approvedAddress = approvedAddress; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultApprovalRiskErc20Risk responseWrapperGetScanResultResultApprovalRiskErc20Risk = (ResponseWrapperGetScanResultResultApprovalRiskErc20Risk) o; + return Objects.equals(this.transactionTime, responseWrapperGetScanResultResultApprovalRiskErc20Risk.transactionTime) && + Objects.equals(this.tokenAddress, responseWrapperGetScanResultResultApprovalRiskErc20Risk.tokenAddress) && + Objects.equals(this.tokenSymbol, responseWrapperGetScanResultResultApprovalRiskErc20Risk.tokenSymbol) && + Objects.equals(this.approvedAmount, responseWrapperGetScanResultResultApprovalRiskErc20Risk.approvedAmount) && + Objects.equals(this.transactionHash, responseWrapperGetScanResultResultApprovalRiskErc20Risk.transactionHash) && + Objects.equals(this.approvedAddress, responseWrapperGetScanResultResultApprovalRiskErc20Risk.approvedAddress); + } + + @Override + public int hashCode() { + return Objects.hash(transactionTime, tokenAddress, tokenSymbol, approvedAmount, transactionHash, approvedAddress); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultApprovalRiskErc20Risk {\n"); + + sb.append(" transactionTime: ").append(toIndentedString(transactionTime)).append("\n"); + sb.append(" tokenAddress: ").append(toIndentedString(tokenAddress)).append("\n"); + sb.append(" tokenSymbol: ").append(toIndentedString(tokenSymbol)).append("\n"); + sb.append(" approvedAmount: ").append(toIndentedString(approvedAmount)).append("\n"); + sb.append(" transactionHash: ").append(toIndentedString(transactionHash)).append("\n"); + sb.append(" approvedAddress: ").append(toIndentedString(approvedAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRiskRiskDetail.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRiskRiskDetail.java new file mode 100644 index 0000000..22e8513 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultApprovalRiskRiskDetail.java @@ -0,0 +1,103 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultApprovalRiskErc20Risk; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * ResponseWrapperGetScanResultResultApprovalRiskRiskDetail + */ + + + +public class ResponseWrapperGetScanResultResultApprovalRiskRiskDetail { + @SerializedName("erc20_risk") + private List erc20Risk = null; + + public ResponseWrapperGetScanResultResultApprovalRiskRiskDetail erc20Risk(List erc20Risk) { + this.erc20Risk = erc20Risk; + return this; + } + + public ResponseWrapperGetScanResultResultApprovalRiskRiskDetail addErc20RiskItem(ResponseWrapperGetScanResultResultApprovalRiskErc20Risk erc20RiskItem) { + if (this.erc20Risk == null) { + this.erc20Risk = new ArrayList(); + } + this.erc20Risk.add(erc20RiskItem); + return this; + } + + /** + * Get erc20Risk + * @return erc20Risk + **/ + @Schema(description = "") + public List getErc20Risk() { + return erc20Risk; + } + + public void setErc20Risk(List erc20Risk) { + this.erc20Risk = erc20Risk; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultApprovalRiskRiskDetail responseWrapperGetScanResultResultApprovalRiskRiskDetail = (ResponseWrapperGetScanResultResultApprovalRiskRiskDetail) o; + return Objects.equals(this.erc20Risk, responseWrapperGetScanResultResultApprovalRiskRiskDetail.erc20Risk); + } + + @Override + public int hashCode() { + return Objects.hash(erc20Risk); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultApprovalRiskRiskDetail {\n"); + + sb.append(" erc20Risk: ").append(toIndentedString(erc20Risk)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultStablecoinDepeg.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultStablecoinDepeg.java new file mode 100644 index 0000000..28b5b15 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultStablecoinDepeg.java @@ -0,0 +1,126 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * ResponseWrapperGetScanResultResultStablecoinDepeg + */ + + + +public class ResponseWrapperGetScanResultResultStablecoinDepeg { + @SerializedName("risk_num") + private Integer riskNum = null; + + @SerializedName("risk_detail") + private List riskDetail = null; + + public ResponseWrapperGetScanResultResultStablecoinDepeg riskNum(Integer riskNum) { + this.riskNum = riskNum; + return this; + } + + /** + * Get riskNum + * @return riskNum + **/ + @Schema(description = "") + public Integer getRiskNum() { + return riskNum; + } + + public void setRiskNum(Integer riskNum) { + this.riskNum = riskNum; + } + + public ResponseWrapperGetScanResultResultStablecoinDepeg riskDetail(List riskDetail) { + this.riskDetail = riskDetail; + return this; + } + + public ResponseWrapperGetScanResultResultStablecoinDepeg addRiskDetailItem(ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail riskDetailItem) { + if (this.riskDetail == null) { + this.riskDetail = new ArrayList(); + } + this.riskDetail.add(riskDetailItem); + return this; + } + + /** + * Get riskDetail + * @return riskDetail + **/ + @Schema(description = "") + public List getRiskDetail() { + return riskDetail; + } + + public void setRiskDetail(List riskDetail) { + this.riskDetail = riskDetail; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultStablecoinDepeg responseWrapperGetScanResultResultStablecoinDepeg = (ResponseWrapperGetScanResultResultStablecoinDepeg) o; + return Objects.equals(this.riskNum, responseWrapperGetScanResultResultStablecoinDepeg.riskNum) && + Objects.equals(this.riskDetail, responseWrapperGetScanResultResultStablecoinDepeg.riskDetail); + } + + @Override + public int hashCode() { + return Objects.hash(riskNum, riskDetail); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultStablecoinDepeg {\n"); + + sb.append(" riskNum: ").append(toIndentedString(riskNum)).append("\n"); + sb.append(" riskDetail: ").append(toIndentedString(riskDetail)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail.java new file mode 100644 index 0000000..6e9df2e --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail.java @@ -0,0 +1,138 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail + */ + + + +public class ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail { + @SerializedName("fall_percent") + private String fallPercent = null; + + @SerializedName("token_address") + private String tokenAddress = null; + + @SerializedName("token_symbol") + private String tokenSymbol = null; + + public ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail fallPercent(String fallPercent) { + this.fallPercent = fallPercent; + return this; + } + + /** + * Get fallPercent + * @return fallPercent + **/ + @Schema(description = "") + public String getFallPercent() { + return fallPercent; + } + + public void setFallPercent(String fallPercent) { + this.fallPercent = fallPercent; + } + + public ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail tokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + return this; + } + + /** + * Get tokenAddress + * @return tokenAddress + **/ + @Schema(description = "") + public String getTokenAddress() { + return tokenAddress; + } + + public void setTokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + } + + public ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail tokenSymbol(String tokenSymbol) { + this.tokenSymbol = tokenSymbol; + return this; + } + + /** + * Get tokenSymbol + * @return tokenSymbol + **/ + @Schema(description = "") + public String getTokenSymbol() { + return tokenSymbol; + } + + public void setTokenSymbol(String tokenSymbol) { + this.tokenSymbol = tokenSymbol; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail responseWrapperGetScanResultResultStablecoinDepegRiskDetail = (ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail) o; + return Objects.equals(this.fallPercent, responseWrapperGetScanResultResultStablecoinDepegRiskDetail.fallPercent) && + Objects.equals(this.tokenAddress, responseWrapperGetScanResultResultStablecoinDepegRiskDetail.tokenAddress) && + Objects.equals(this.tokenSymbol, responseWrapperGetScanResultResultStablecoinDepegRiskDetail.tokenSymbol); + } + + @Override + public int hashCode() { + return Objects.hash(fallPercent, tokenAddress, tokenSymbol); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail {\n"); + + sb.append(" fallPercent: ").append(toIndentedString(fallPercent)).append("\n"); + sb.append(" tokenAddress: ").append(toIndentedString(tokenAddress)).append("\n"); + sb.append(" tokenSymbol: ").append(toIndentedString(tokenSymbol)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultTokenAttention.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultTokenAttention.java new file mode 100644 index 0000000..44e32b8 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultTokenAttention.java @@ -0,0 +1,126 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.ResponseWrapperGetScanResultResultTokenAttentionRiskDetail; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * ResponseWrapperGetScanResultResultTokenAttention + */ + + + +public class ResponseWrapperGetScanResultResultTokenAttention { + @SerializedName("risk_num") + private Integer riskNum = null; + + @SerializedName("risk_detail") + private List riskDetail = null; + + public ResponseWrapperGetScanResultResultTokenAttention riskNum(Integer riskNum) { + this.riskNum = riskNum; + return this; + } + + /** + * Get riskNum + * @return riskNum + **/ + @Schema(description = "") + public Integer getRiskNum() { + return riskNum; + } + + public void setRiskNum(Integer riskNum) { + this.riskNum = riskNum; + } + + public ResponseWrapperGetScanResultResultTokenAttention riskDetail(List riskDetail) { + this.riskDetail = riskDetail; + return this; + } + + public ResponseWrapperGetScanResultResultTokenAttention addRiskDetailItem(ResponseWrapperGetScanResultResultTokenAttentionRiskDetail riskDetailItem) { + if (this.riskDetail == null) { + this.riskDetail = new ArrayList(); + } + this.riskDetail.add(riskDetailItem); + return this; + } + + /** + * Get riskDetail + * @return riskDetail + **/ + @Schema(description = "") + public List getRiskDetail() { + return riskDetail; + } + + public void setRiskDetail(List riskDetail) { + this.riskDetail = riskDetail; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultTokenAttention responseWrapperGetScanResultResultTokenAttention = (ResponseWrapperGetScanResultResultTokenAttention) o; + return Objects.equals(this.riskNum, responseWrapperGetScanResultResultTokenAttention.riskNum) && + Objects.equals(this.riskDetail, responseWrapperGetScanResultResultTokenAttention.riskDetail); + } + + @Override + public int hashCode() { + return Objects.hash(riskNum, riskDetail); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultTokenAttention {\n"); + + sb.append(" riskNum: ").append(toIndentedString(riskNum)).append("\n"); + sb.append(" riskDetail: ").append(toIndentedString(riskDetail)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultTokenAttentionRiskDetail.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultTokenAttentionRiskDetail.java new file mode 100644 index 0000000..89e65a7 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperGetScanResultResultTokenAttentionRiskDetail.java @@ -0,0 +1,115 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperGetScanResultResultTokenAttentionRiskDetail + */ + + + +public class ResponseWrapperGetScanResultResultTokenAttentionRiskDetail { + @SerializedName("token_address") + private String tokenAddress = null; + + @SerializedName("token_symbol") + private String tokenSymbol = null; + + public ResponseWrapperGetScanResultResultTokenAttentionRiskDetail tokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + return this; + } + + /** + * Get tokenAddress + * @return tokenAddress + **/ + @Schema(description = "") + public String getTokenAddress() { + return tokenAddress; + } + + public void setTokenAddress(String tokenAddress) { + this.tokenAddress = tokenAddress; + } + + public ResponseWrapperGetScanResultResultTokenAttentionRiskDetail tokenSymbol(String tokenSymbol) { + this.tokenSymbol = tokenSymbol; + return this; + } + + /** + * Get tokenSymbol + * @return tokenSymbol + **/ + @Schema(description = "") + public String getTokenSymbol() { + return tokenSymbol; + } + + public void setTokenSymbol(String tokenSymbol) { + this.tokenSymbol = tokenSymbol; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperGetScanResultResultTokenAttentionRiskDetail responseWrapperGetScanResultResultTokenAttentionRiskDetail = (ResponseWrapperGetScanResultResultTokenAttentionRiskDetail) o; + return Objects.equals(this.tokenAddress, responseWrapperGetScanResultResultTokenAttentionRiskDetail.tokenAddress) && + Objects.equals(this.tokenSymbol, responseWrapperGetScanResultResultTokenAttentionRiskDetail.tokenSymbol); + } + + @Override + public int hashCode() { + return Objects.hash(tokenAddress, tokenSymbol); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperGetScanResultResultTokenAttentionRiskDetail {\n"); + + sb.append(" tokenAddress: ").append(toIndentedString(tokenAddress)).append("\n"); + sb.append(" tokenSymbol: ").append(toIndentedString(tokenSymbol)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperOpenScanAddressResp.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperOpenScanAddressResp.java new file mode 100644 index 0000000..11388ad --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperOpenScanAddressResp.java @@ -0,0 +1,139 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.OpenScanAddressResp; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperOpenScanAddressResp + */ + + + +public class ResponseWrapperOpenScanAddressResp { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("result") + private OpenScanAddressResp result = null; + + public ResponseWrapperOpenScanAddressResp code(Integer code) { + this.code = code; + return this; + } + + /** + * Code 1:Success + * @return code + **/ + @Schema(description = "Code 1:Success") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public ResponseWrapperOpenScanAddressResp message(String message) { + this.message = message; + return this; + } + + /** + * Response message + * @return message + **/ + @Schema(description = "Response message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ResponseWrapperOpenScanAddressResp result(OpenScanAddressResp result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @Schema(description = "") + public OpenScanAddressResp getResult() { + return result; + } + + public void setResult(OpenScanAddressResp result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperOpenScanAddressResp responseWrapperOpenScanAddressResp = (ResponseWrapperOpenScanAddressResp) o; + return Objects.equals(this.code, responseWrapperOpenScanAddressResp.code) && + Objects.equals(this.message, responseWrapperOpenScanAddressResp.message) && + Objects.equals(this.result, responseWrapperOpenScanAddressResp.result); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperOpenScanAddressResp {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseTaNftLockerLockInfo.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseTaNftLockerLockInfo.java new file mode 100644 index 0000000..9e96ae4 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseTaNftLockerLockInfo.java @@ -0,0 +1,139 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.PageResponseTaNftLockerLockInfo; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperPageResponseTaNftLockerLockInfo + */ + + + +public class ResponseWrapperPageResponseTaNftLockerLockInfo { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("result") + private PageResponseTaNftLockerLockInfo result = null; + + public ResponseWrapperPageResponseTaNftLockerLockInfo code(Integer code) { + this.code = code; + return this; + } + + /** + * Code 1:Success + * @return code + **/ + @Schema(description = "Code 1:Success") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public ResponseWrapperPageResponseTaNftLockerLockInfo message(String message) { + this.message = message; + return this; + } + + /** + * Response message + * @return message + **/ + @Schema(description = "Response message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ResponseWrapperPageResponseTaNftLockerLockInfo result(PageResponseTaNftLockerLockInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @Schema(description = "") + public PageResponseTaNftLockerLockInfo getResult() { + return result; + } + + public void setResult(PageResponseTaNftLockerLockInfo result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperPageResponseTaNftLockerLockInfo responseWrapperPageResponseTaNftLockerLockInfo = (ResponseWrapperPageResponseTaNftLockerLockInfo) o; + return Objects.equals(this.code, responseWrapperPageResponseTaNftLockerLockInfo.code) && + Objects.equals(this.message, responseWrapperPageResponseTaNftLockerLockInfo.message) && + Objects.equals(this.result, responseWrapperPageResponseTaNftLockerLockInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperPageResponseTaNftLockerLockInfo {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseTaTokenLockerLockInfo.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseTaTokenLockerLockInfo.java new file mode 100644 index 0000000..862498b --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseTaTokenLockerLockInfo.java @@ -0,0 +1,139 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.PageResponseTaTokenLockerLockInfo; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperPageResponseTaTokenLockerLockInfo + */ + + + +public class ResponseWrapperPageResponseTaTokenLockerLockInfo { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("result") + private PageResponseTaTokenLockerLockInfo result = null; + + public ResponseWrapperPageResponseTaTokenLockerLockInfo code(Integer code) { + this.code = code; + return this; + } + + /** + * Code 1:Success + * @return code + **/ + @Schema(description = "Code 1:Success") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public ResponseWrapperPageResponseTaTokenLockerLockInfo message(String message) { + this.message = message; + return this; + } + + /** + * Response message + * @return message + **/ + @Schema(description = "Response message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ResponseWrapperPageResponseTaTokenLockerLockInfo result(PageResponseTaTokenLockerLockInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @Schema(description = "") + public PageResponseTaTokenLockerLockInfo getResult() { + return result; + } + + public void setResult(PageResponseTaTokenLockerLockInfo result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperPageResponseTaTokenLockerLockInfo responseWrapperPageResponseTaTokenLockerLockInfo = (ResponseWrapperPageResponseTaTokenLockerLockInfo) o; + return Objects.equals(this.code, responseWrapperPageResponseTaTokenLockerLockInfo.code) && + Objects.equals(this.message, responseWrapperPageResponseTaTokenLockerLockInfo.message) && + Objects.equals(this.result, responseWrapperPageResponseTaTokenLockerLockInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperPageResponseTaTokenLockerLockInfo {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseV4NftLockerLockInfos.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseV4NftLockerLockInfos.java new file mode 100644 index 0000000..e53bd38 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperPageResponseV4NftLockerLockInfos.java @@ -0,0 +1,139 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.PageResponseV4NftLockerLockInfos; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperPageResponseV4NftLockerLockInfos + */ + + + +public class ResponseWrapperPageResponseV4NftLockerLockInfos { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("result") + private PageResponseV4NftLockerLockInfos result = null; + + public ResponseWrapperPageResponseV4NftLockerLockInfos code(Integer code) { + this.code = code; + return this; + } + + /** + * Code 1:Success + * @return code + **/ + @Schema(description = "Code 1:Success") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public ResponseWrapperPageResponseV4NftLockerLockInfos message(String message) { + this.message = message; + return this; + } + + /** + * Response message + * @return message + **/ + @Schema(description = "Response message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ResponseWrapperPageResponseV4NftLockerLockInfos result(PageResponseV4NftLockerLockInfos result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @Schema(description = "") + public PageResponseV4NftLockerLockInfos getResult() { + return result; + } + + public void setResult(PageResponseV4NftLockerLockInfos result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperPageResponseV4NftLockerLockInfos responseWrapperPageResponseV4NftLockerLockInfos = (ResponseWrapperPageResponseV4NftLockerLockInfos) o; + return Objects.equals(this.code, responseWrapperPageResponseV4NftLockerLockInfos.code) && + Objects.equals(this.message, responseWrapperPageResponseV4NftLockerLockInfos.message) && + Objects.equals(this.result, responseWrapperPageResponseV4NftLockerLockInfos.result); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperPageResponseV4NftLockerLockInfos {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperTransactionSecurityResponse.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperTransactionSecurityResponse.java new file mode 100644 index 0000000..9d5dbc6 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperTransactionSecurityResponse.java @@ -0,0 +1,139 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.TransactionSecurityResponse; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperTransactionSecurityResponse + */ + + + +public class ResponseWrapperTransactionSecurityResponse { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("result") + private TransactionSecurityResponse result = null; + + public ResponseWrapperTransactionSecurityResponse code(Integer code) { + this.code = code; + return this; + } + + /** + * Code 1:Success + * @return code + **/ + @Schema(description = "Code 1:Success") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public ResponseWrapperTransactionSecurityResponse message(String message) { + this.message = message; + return this; + } + + /** + * Response message + * @return message + **/ + @Schema(description = "Response message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ResponseWrapperTransactionSecurityResponse result(TransactionSecurityResponse result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @Schema(description = "") + public TransactionSecurityResponse getResult() { + return result; + } + + public void setResult(TransactionSecurityResponse result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperTransactionSecurityResponse responseWrapperTransactionSecurityResponse = (ResponseWrapperTransactionSecurityResponse) o; + return Objects.equals(this.code, responseWrapperTransactionSecurityResponse.code) && + Objects.equals(this.message, responseWrapperTransactionSecurityResponse.message) && + Objects.equals(this.result, responseWrapperTransactionSecurityResponse.result); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperTransactionSecurityResponse {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperV4LpLockerLockInfoResp.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperV4LpLockerLockInfoResp.java new file mode 100644 index 0000000..a2795ba --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperV4LpLockerLockInfoResp.java @@ -0,0 +1,139 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.V4LpLockerLockInfoResp; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperV4LpLockerLockInfoResp + */ + + + +public class ResponseWrapperV4LpLockerLockInfoResp { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("result") + private V4LpLockerLockInfoResp result = null; + + public ResponseWrapperV4LpLockerLockInfoResp code(Integer code) { + this.code = code; + return this; + } + + /** + * Code 1:Success + * @return code + **/ + @Schema(description = "Code 1:Success") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public ResponseWrapperV4LpLockerLockInfoResp message(String message) { + this.message = message; + return this; + } + + /** + * Response message + * @return message + **/ + @Schema(description = "Response message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ResponseWrapperV4LpLockerLockInfoResp result(V4LpLockerLockInfoResp result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @Schema(description = "") + public V4LpLockerLockInfoResp getResult() { + return result; + } + + public void setResult(V4LpLockerLockInfoResp result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperV4LpLockerLockInfoResp responseWrapperV4LpLockerLockInfoResp = (ResponseWrapperV4LpLockerLockInfoResp) o; + return Objects.equals(this.code, responseWrapperV4LpLockerLockInfoResp.code) && + Objects.equals(this.message, responseWrapperV4LpLockerLockInfoResp.message) && + Objects.equals(this.result, responseWrapperV4LpLockerLockInfoResp.result); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperV4LpLockerLockInfoResp {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/ResponseWrapperstring.java b/src/main/java/io/gopluslabs/client/model/ResponseWrapperstring.java new file mode 100644 index 0000000..c4ebe0f --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/ResponseWrapperstring.java @@ -0,0 +1,138 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * ResponseWrapperstring + */ + + + +public class ResponseWrapperstring { + @SerializedName("code") + private Integer code = null; + + @SerializedName("message") + private String message = null; + + @SerializedName("result") + private String result = null; + + public ResponseWrapperstring code(Integer code) { + this.code = code; + return this; + } + + /** + * Code 1:Success + * @return code + **/ + @Schema(description = "Code 1:Success") + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public ResponseWrapperstring message(String message) { + this.message = message; + return this; + } + + /** + * Response message + * @return message + **/ + @Schema(description = "Response message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ResponseWrapperstring result(String result) { + this.result = result; + return this; + } + + /** + * Response result + * @return result + **/ + @Schema(description = "Response result") + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseWrapperstring responseWrapperstring = (ResponseWrapperstring) o; + return Objects.equals(this.code, responseWrapperstring.code) && + Objects.equals(this.message, responseWrapperstring.message) && + Objects.equals(this.result, responseWrapperstring.result); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, result); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseWrapperstring {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/TaNftLockerLockInfo.java b/src/main/java/io/gopluslabs/client/model/TaNftLockerLockInfo.java new file mode 100644 index 0000000..72dc278 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/TaNftLockerLockInfo.java @@ -0,0 +1,277 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.math.BigDecimal; +/** + * Token NFT Lock + */ +@Schema(description = "Token NFT Lock") + + +public class TaNftLockerLockInfo { + @SerializedName("endTime") + private Long endTime = null; + + @SerializedName("liquidity") + private BigDecimal liquidity = null; + + @SerializedName("lockId") + private String lockId = null; + + @SerializedName("lockedPercent") + private String lockedPercent = null; + + @SerializedName("nftId") + private String nftId = null; + + @SerializedName("nftPositionManager") + private String nftPositionManager = null; + + @SerializedName("owner") + private String owner = null; + + @SerializedName("pool") + private String pool = null; + + @SerializedName("startTime") + private Long startTime = null; + + public TaNftLockerLockInfo endTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * 解锁时间戳 + * @return endTime + **/ + @Schema(description = "解锁时间戳") + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public TaNftLockerLockInfo liquidity(BigDecimal liquidity) { + this.liquidity = liquidity; + return this; + } + + /** + * liquidity + * @return liquidity + **/ + @Schema(description = "liquidity") + public BigDecimal getLiquidity() { + return liquidity; + } + + public void setLiquidity(BigDecimal liquidity) { + this.liquidity = liquidity; + } + + public TaNftLockerLockInfo lockId(String lockId) { + this.lockId = lockId; + return this; + } + + /** + * lock id + * @return lockId + **/ + @Schema(description = "lock id") + public String getLockId() { + return lockId; + } + + public void setLockId(String lockId) { + this.lockId = lockId; + } + + public TaNftLockerLockInfo lockedPercent(String lockedPercent) { + this.lockedPercent = lockedPercent; + return this; + } + + /** + * 锁仓比例 + * @return lockedPercent + **/ + @Schema(description = "锁仓比例") + public String getLockedPercent() { + return lockedPercent; + } + + public void setLockedPercent(String lockedPercent) { + this.lockedPercent = lockedPercent; + } + + public TaNftLockerLockInfo nftId(String nftId) { + this.nftId = nftId; + return this; + } + + /** + * nft id + * @return nftId + **/ + @Schema(description = "nft id") + public String getNftId() { + return nftId; + } + + public void setNftId(String nftId) { + this.nftId = nftId; + } + + public TaNftLockerLockInfo nftPositionManager(String nftPositionManager) { + this.nftPositionManager = nftPositionManager; + return this; + } + + /** + * nft Position Manager + * @return nftPositionManager + **/ + @Schema(description = "nft Position Manager") + public String getNftPositionManager() { + return nftPositionManager; + } + + public void setNftPositionManager(String nftPositionManager) { + this.nftPositionManager = nftPositionManager; + } + + public TaNftLockerLockInfo owner(String owner) { + this.owner = owner; + return this; + } + + /** + * user address + * @return owner + **/ + @Schema(description = "user address") + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public TaNftLockerLockInfo pool(String pool) { + this.pool = pool; + return this; + } + + /** + * pool address + * @return pool + **/ + @Schema(description = "pool address") + public String getPool() { + return pool; + } + + public void setPool(String pool) { + this.pool = pool; + } + + public TaNftLockerLockInfo startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * 开始时间戳 + * @return startTime + **/ + @Schema(description = "开始时间戳") + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaNftLockerLockInfo taNftLockerLockInfo = (TaNftLockerLockInfo) o; + return Objects.equals(this.endTime, taNftLockerLockInfo.endTime) && + Objects.equals(this.liquidity, taNftLockerLockInfo.liquidity) && + Objects.equals(this.lockId, taNftLockerLockInfo.lockId) && + Objects.equals(this.lockedPercent, taNftLockerLockInfo.lockedPercent) && + Objects.equals(this.nftId, taNftLockerLockInfo.nftId) && + Objects.equals(this.nftPositionManager, taNftLockerLockInfo.nftPositionManager) && + Objects.equals(this.owner, taNftLockerLockInfo.owner) && + Objects.equals(this.pool, taNftLockerLockInfo.pool) && + Objects.equals(this.startTime, taNftLockerLockInfo.startTime); + } + + @Override + public int hashCode() { + return Objects.hash(endTime, liquidity, lockId, lockedPercent, nftId, nftPositionManager, owner, pool, startTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TaNftLockerLockInfo {\n"); + + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" liquidity: ").append(toIndentedString(liquidity)).append("\n"); + sb.append(" lockId: ").append(toIndentedString(lockId)).append("\n"); + sb.append(" lockedPercent: ").append(toIndentedString(lockedPercent)).append("\n"); + sb.append(" nftId: ").append(toIndentedString(nftId)).append("\n"); + sb.append(" nftPositionManager: ").append(toIndentedString(nftPositionManager)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/TaTokenLockerLockInfo.java b/src/main/java/io/gopluslabs/client/model/TaTokenLockerLockInfo.java new file mode 100644 index 0000000..813f5bb --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/TaTokenLockerLockInfo.java @@ -0,0 +1,276 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * Token Locker Lock + */ +@Schema(description = "Token Locker Lock") + + +public class TaTokenLockerLockInfo { + @SerializedName("amount") + private String amount = null; + + @SerializedName("endTime") + private Long endTime = null; + + @SerializedName("isLpToken") + private Integer isLpToken = null; + + @SerializedName("lockId") + private String lockId = null; + + @SerializedName("lockedPercent") + private String lockedPercent = null; + + @SerializedName("owner") + private String owner = null; + + @SerializedName("startTime") + private Long startTime = null; + + @SerializedName("token") + private String token = null; + + @SerializedName("unlockedAmount") + private String unlockedAmount = null; + + public TaTokenLockerLockInfo amount(String amount) { + this.amount = amount; + return this; + } + + /** + * amount + * @return amount + **/ + @Schema(description = "amount") + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public TaTokenLockerLockInfo endTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * endTime + * @return endTime + **/ + @Schema(description = "endTime") + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public TaTokenLockerLockInfo isLpToken(Integer isLpToken) { + this.isLpToken = isLpToken; + return this; + } + + /** + * is lp token -1:unknow,0:no,1:yes + * @return isLpToken + **/ + @Schema(description = "is lp token -1:unknow,0:no,1:yes") + public Integer getIsLpToken() { + return isLpToken; + } + + public void setIsLpToken(Integer isLpToken) { + this.isLpToken = isLpToken; + } + + public TaTokenLockerLockInfo lockId(String lockId) { + this.lockId = lockId; + return this; + } + + /** + * lock id + * @return lockId + **/ + @Schema(description = "lock id") + public String getLockId() { + return lockId; + } + + public void setLockId(String lockId) { + this.lockId = lockId; + } + + public TaTokenLockerLockInfo lockedPercent(String lockedPercent) { + this.lockedPercent = lockedPercent; + return this; + } + + /** + * lockedPercent + * @return lockedPercent + **/ + @Schema(description = "lockedPercent") + public String getLockedPercent() { + return lockedPercent; + } + + public void setLockedPercent(String lockedPercent) { + this.lockedPercent = lockedPercent; + } + + public TaTokenLockerLockInfo owner(String owner) { + this.owner = owner; + return this; + } + + /** + * user address + * @return owner + **/ + @Schema(description = "user address") + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public TaTokenLockerLockInfo startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * startTime + * @return startTime + **/ + @Schema(description = "startTime") + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public TaTokenLockerLockInfo token(String token) { + this.token = token; + return this; + } + + /** + * token contract address + * @return token + **/ + @Schema(description = "token contract address") + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public TaTokenLockerLockInfo unlockedAmount(String unlockedAmount) { + this.unlockedAmount = unlockedAmount; + return this; + } + + /** + * unlockedAmount + * @return unlockedAmount + **/ + @Schema(description = "unlockedAmount") + public String getUnlockedAmount() { + return unlockedAmount; + } + + public void setUnlockedAmount(String unlockedAmount) { + this.unlockedAmount = unlockedAmount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaTokenLockerLockInfo taTokenLockerLockInfo = (TaTokenLockerLockInfo) o; + return Objects.equals(this.amount, taTokenLockerLockInfo.amount) && + Objects.equals(this.endTime, taTokenLockerLockInfo.endTime) && + Objects.equals(this.isLpToken, taTokenLockerLockInfo.isLpToken) && + Objects.equals(this.lockId, taTokenLockerLockInfo.lockId) && + Objects.equals(this.lockedPercent, taTokenLockerLockInfo.lockedPercent) && + Objects.equals(this.owner, taTokenLockerLockInfo.owner) && + Objects.equals(this.startTime, taTokenLockerLockInfo.startTime) && + Objects.equals(this.token, taTokenLockerLockInfo.token) && + Objects.equals(this.unlockedAmount, taTokenLockerLockInfo.unlockedAmount); + } + + @Override + public int hashCode() { + return Objects.hash(amount, endTime, isLpToken, lockId, lockedPercent, owner, startTime, token, unlockedAmount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TaTokenLockerLockInfo {\n"); + + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" isLpToken: ").append(toIndentedString(isLpToken)).append("\n"); + sb.append(" lockId: ").append(toIndentedString(lockId)).append("\n"); + sb.append(" lockedPercent: ").append(toIndentedString(lockedPercent)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append(" unlockedAmount: ").append(toIndentedString(unlockedAmount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/TransactionSecurityRequest.java b/src/main/java/io/gopluslabs/client/model/TransactionSecurityRequest.java new file mode 100644 index 0000000..14e44f3 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/TransactionSecurityRequest.java @@ -0,0 +1,356 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.AddressInfo; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * TransactionSecurityRequest + */ + + + +public class TransactionSecurityRequest { + @SerializedName("access_list") + private List accessList = null; + + @SerializedName("chain_id") + private String chainId = null; + + @SerializedName("data") + private String data = null; + + @SerializedName("from") + private String from = null; + + @SerializedName("gas_limit") + private String gasLimit = null; + + @SerializedName("gas_price") + private String gasPrice = null; + + @SerializedName("max_fee_per_gas") + private String maxFeePerGas = null; + + @SerializedName("max_priority_fee_per_gas") + private String maxPriorityFeePerGas = null; + + @SerializedName("nonce") + private String nonce = null; + + @SerializedName("to") + private String to = null; + + @SerializedName("url") + private String url = null; + + @SerializedName("value") + private String value = null; + + public TransactionSecurityRequest accessList(List accessList) { + this.accessList = accessList; + return this; + } + + public TransactionSecurityRequest addAccessListItem(AddressInfo accessListItem) { + if (this.accessList == null) { + this.accessList = new ArrayList(); + } + this.accessList.add(accessListItem); + return this; + } + + /** + * Get accessList + * @return accessList + **/ + @Schema(description = "") + public List getAccessList() { + return accessList; + } + + public void setAccessList(List accessList) { + this.accessList = accessList; + } + + public TransactionSecurityRequest chainId(String chainId) { + this.chainId = chainId; + return this; + } + + /** + * Get chainId + * @return chainId + **/ + @Schema(description = "") + public String getChainId() { + return chainId; + } + + public void setChainId(String chainId) { + this.chainId = chainId; + } + + public TransactionSecurityRequest data(String data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public TransactionSecurityRequest from(String from) { + this.from = from; + return this; + } + + /** + * Get from + * @return from + **/ + @Schema(description = "") + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public TransactionSecurityRequest gasLimit(String gasLimit) { + this.gasLimit = gasLimit; + return this; + } + + /** + * Get gasLimit + * @return gasLimit + **/ + @Schema(description = "") + public String getGasLimit() { + return gasLimit; + } + + public void setGasLimit(String gasLimit) { + this.gasLimit = gasLimit; + } + + public TransactionSecurityRequest gasPrice(String gasPrice) { + this.gasPrice = gasPrice; + return this; + } + + /** + * Get gasPrice + * @return gasPrice + **/ + @Schema(description = "") + public String getGasPrice() { + return gasPrice; + } + + public void setGasPrice(String gasPrice) { + this.gasPrice = gasPrice; + } + + public TransactionSecurityRequest maxFeePerGas(String maxFeePerGas) { + this.maxFeePerGas = maxFeePerGas; + return this; + } + + /** + * Get maxFeePerGas + * @return maxFeePerGas + **/ + @Schema(description = "") + public String getMaxFeePerGas() { + return maxFeePerGas; + } + + public void setMaxFeePerGas(String maxFeePerGas) { + this.maxFeePerGas = maxFeePerGas; + } + + public TransactionSecurityRequest maxPriorityFeePerGas(String maxPriorityFeePerGas) { + this.maxPriorityFeePerGas = maxPriorityFeePerGas; + return this; + } + + /** + * Get maxPriorityFeePerGas + * @return maxPriorityFeePerGas + **/ + @Schema(description = "") + public String getMaxPriorityFeePerGas() { + return maxPriorityFeePerGas; + } + + public void setMaxPriorityFeePerGas(String maxPriorityFeePerGas) { + this.maxPriorityFeePerGas = maxPriorityFeePerGas; + } + + public TransactionSecurityRequest nonce(String nonce) { + this.nonce = nonce; + return this; + } + + /** + * Get nonce + * @return nonce + **/ + @Schema(description = "") + public String getNonce() { + return nonce; + } + + public void setNonce(String nonce) { + this.nonce = nonce; + } + + public TransactionSecurityRequest to(String to) { + this.to = to; + return this; + } + + /** + * Get to + * @return to + **/ + @Schema(description = "") + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public TransactionSecurityRequest url(String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + **/ + @Schema(description = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public TransactionSecurityRequest value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @Schema(description = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransactionSecurityRequest transactionSecurityRequest = (TransactionSecurityRequest) o; + return Objects.equals(this.accessList, transactionSecurityRequest.accessList) && + Objects.equals(this.chainId, transactionSecurityRequest.chainId) && + Objects.equals(this.data, transactionSecurityRequest.data) && + Objects.equals(this.from, transactionSecurityRequest.from) && + Objects.equals(this.gasLimit, transactionSecurityRequest.gasLimit) && + Objects.equals(this.gasPrice, transactionSecurityRequest.gasPrice) && + Objects.equals(this.maxFeePerGas, transactionSecurityRequest.maxFeePerGas) && + Objects.equals(this.maxPriorityFeePerGas, transactionSecurityRequest.maxPriorityFeePerGas) && + Objects.equals(this.nonce, transactionSecurityRequest.nonce) && + Objects.equals(this.to, transactionSecurityRequest.to) && + Objects.equals(this.url, transactionSecurityRequest.url) && + Objects.equals(this.value, transactionSecurityRequest.value); + } + + @Override + public int hashCode() { + return Objects.hash(accessList, chainId, data, from, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, url, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TransactionSecurityRequest {\n"); + + sb.append(" accessList: ").append(toIndentedString(accessList)).append("\n"); + sb.append(" chainId: ").append(toIndentedString(chainId)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" gasLimit: ").append(toIndentedString(gasLimit)).append("\n"); + sb.append(" gasPrice: ").append(toIndentedString(gasPrice)).append("\n"); + sb.append(" maxFeePerGas: ").append(toIndentedString(maxFeePerGas)).append("\n"); + sb.append(" maxPriorityFeePerGas: ").append(toIndentedString(maxPriorityFeePerGas)).append("\n"); + sb.append(" nonce: ").append(toIndentedString(nonce)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/TransactionSecurityResponse.java b/src/main/java/io/gopluslabs/client/model/TransactionSecurityResponse.java new file mode 100644 index 0000000..91f69fd --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/TransactionSecurityResponse.java @@ -0,0 +1,433 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.AddressInfo; +import io.gopluslabs.client.model.AllowanceChange; +import io.gopluslabs.client.model.ERC20BalanceChange; +import io.gopluslabs.client.model.ERC721BalanceChange; +import io.gopluslabs.client.model.Flag; +import io.gopluslabs.client.model.LogEntry; +import io.gopluslabs.client.model.NativeBalanceChange; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * TransactionSecurityResponse + */ + + + +public class TransactionSecurityResponse { + @SerializedName("erc20_allowance_changes") + private List erc20AllowanceChanges = null; + + @SerializedName("erc20_balance_changes") + private List erc20BalanceChanges = null; + + @SerializedName("erc721_balance_changes") + private List erc721BalanceChanges = null; + + @SerializedName("flagged") + private List flagged = null; + + @SerializedName("is_revert") + private Boolean isRevert = null; + + @SerializedName("is_simulated") + private Boolean isSimulated = null; + + @SerializedName("logs") + private List logs = null; + + @SerializedName("native_balance_changes") + private List nativeBalanceChanges = null; + + @SerializedName("revert_reason") + private String revertReason = null; + + @SerializedName("simulate_failed_reason") + private String simulateFailedReason = null; + + @SerializedName("suspicious_addresses") + private List suspiciousAddresses = null; + + @SerializedName("suspicious_url") + private Boolean suspiciousUrl = null; + + @SerializedName("used_gas") + private Long usedGas = null; + + public TransactionSecurityResponse erc20AllowanceChanges(List erc20AllowanceChanges) { + this.erc20AllowanceChanges = erc20AllowanceChanges; + return this; + } + + public TransactionSecurityResponse addErc20AllowanceChangesItem(AllowanceChange erc20AllowanceChangesItem) { + if (this.erc20AllowanceChanges == null) { + this.erc20AllowanceChanges = new ArrayList(); + } + this.erc20AllowanceChanges.add(erc20AllowanceChangesItem); + return this; + } + + /** + * Get erc20AllowanceChanges + * @return erc20AllowanceChanges + **/ + @Schema(description = "") + public List getErc20AllowanceChanges() { + return erc20AllowanceChanges; + } + + public void setErc20AllowanceChanges(List erc20AllowanceChanges) { + this.erc20AllowanceChanges = erc20AllowanceChanges; + } + + public TransactionSecurityResponse erc20BalanceChanges(List erc20BalanceChanges) { + this.erc20BalanceChanges = erc20BalanceChanges; + return this; + } + + public TransactionSecurityResponse addErc20BalanceChangesItem(ERC20BalanceChange erc20BalanceChangesItem) { + if (this.erc20BalanceChanges == null) { + this.erc20BalanceChanges = new ArrayList(); + } + this.erc20BalanceChanges.add(erc20BalanceChangesItem); + return this; + } + + /** + * Get erc20BalanceChanges + * @return erc20BalanceChanges + **/ + @Schema(description = "") + public List getErc20BalanceChanges() { + return erc20BalanceChanges; + } + + public void setErc20BalanceChanges(List erc20BalanceChanges) { + this.erc20BalanceChanges = erc20BalanceChanges; + } + + public TransactionSecurityResponse erc721BalanceChanges(List erc721BalanceChanges) { + this.erc721BalanceChanges = erc721BalanceChanges; + return this; + } + + public TransactionSecurityResponse addErc721BalanceChangesItem(ERC721BalanceChange erc721BalanceChangesItem) { + if (this.erc721BalanceChanges == null) { + this.erc721BalanceChanges = new ArrayList(); + } + this.erc721BalanceChanges.add(erc721BalanceChangesItem); + return this; + } + + /** + * Get erc721BalanceChanges + * @return erc721BalanceChanges + **/ + @Schema(description = "") + public List getErc721BalanceChanges() { + return erc721BalanceChanges; + } + + public void setErc721BalanceChanges(List erc721BalanceChanges) { + this.erc721BalanceChanges = erc721BalanceChanges; + } + + public TransactionSecurityResponse flagged(List flagged) { + this.flagged = flagged; + return this; + } + + public TransactionSecurityResponse addFlaggedItem(Flag flaggedItem) { + if (this.flagged == null) { + this.flagged = new ArrayList(); + } + this.flagged.add(flaggedItem); + return this; + } + + /** + * Get flagged + * @return flagged + **/ + @Schema(description = "") + public List getFlagged() { + return flagged; + } + + public void setFlagged(List flagged) { + this.flagged = flagged; + } + + public TransactionSecurityResponse isRevert(Boolean isRevert) { + this.isRevert = isRevert; + return this; + } + + /** + * Get isRevert + * @return isRevert + **/ + @Schema(description = "") + public Boolean isIsRevert() { + return isRevert; + } + + public void setIsRevert(Boolean isRevert) { + this.isRevert = isRevert; + } + + public TransactionSecurityResponse isSimulated(Boolean isSimulated) { + this.isSimulated = isSimulated; + return this; + } + + /** + * Get isSimulated + * @return isSimulated + **/ + @Schema(description = "") + public Boolean isIsSimulated() { + return isSimulated; + } + + public void setIsSimulated(Boolean isSimulated) { + this.isSimulated = isSimulated; + } + + public TransactionSecurityResponse logs(List logs) { + this.logs = logs; + return this; + } + + public TransactionSecurityResponse addLogsItem(LogEntry logsItem) { + if (this.logs == null) { + this.logs = new ArrayList(); + } + this.logs.add(logsItem); + return this; + } + + /** + * Get logs + * @return logs + **/ + @Schema(description = "") + public List getLogs() { + return logs; + } + + public void setLogs(List logs) { + this.logs = logs; + } + + public TransactionSecurityResponse nativeBalanceChanges(List nativeBalanceChanges) { + this.nativeBalanceChanges = nativeBalanceChanges; + return this; + } + + public TransactionSecurityResponse addNativeBalanceChangesItem(NativeBalanceChange nativeBalanceChangesItem) { + if (this.nativeBalanceChanges == null) { + this.nativeBalanceChanges = new ArrayList(); + } + this.nativeBalanceChanges.add(nativeBalanceChangesItem); + return this; + } + + /** + * Get nativeBalanceChanges + * @return nativeBalanceChanges + **/ + @Schema(description = "") + public List getNativeBalanceChanges() { + return nativeBalanceChanges; + } + + public void setNativeBalanceChanges(List nativeBalanceChanges) { + this.nativeBalanceChanges = nativeBalanceChanges; + } + + public TransactionSecurityResponse revertReason(String revertReason) { + this.revertReason = revertReason; + return this; + } + + /** + * Get revertReason + * @return revertReason + **/ + @Schema(description = "") + public String getRevertReason() { + return revertReason; + } + + public void setRevertReason(String revertReason) { + this.revertReason = revertReason; + } + + public TransactionSecurityResponse simulateFailedReason(String simulateFailedReason) { + this.simulateFailedReason = simulateFailedReason; + return this; + } + + /** + * Get simulateFailedReason + * @return simulateFailedReason + **/ + @Schema(description = "") + public String getSimulateFailedReason() { + return simulateFailedReason; + } + + public void setSimulateFailedReason(String simulateFailedReason) { + this.simulateFailedReason = simulateFailedReason; + } + + public TransactionSecurityResponse suspiciousAddresses(List suspiciousAddresses) { + this.suspiciousAddresses = suspiciousAddresses; + return this; + } + + public TransactionSecurityResponse addSuspiciousAddressesItem(AddressInfo suspiciousAddressesItem) { + if (this.suspiciousAddresses == null) { + this.suspiciousAddresses = new ArrayList(); + } + this.suspiciousAddresses.add(suspiciousAddressesItem); + return this; + } + + /** + * Get suspiciousAddresses + * @return suspiciousAddresses + **/ + @Schema(description = "") + public List getSuspiciousAddresses() { + return suspiciousAddresses; + } + + public void setSuspiciousAddresses(List suspiciousAddresses) { + this.suspiciousAddresses = suspiciousAddresses; + } + + public TransactionSecurityResponse suspiciousUrl(Boolean suspiciousUrl) { + this.suspiciousUrl = suspiciousUrl; + return this; + } + + /** + * Get suspiciousUrl + * @return suspiciousUrl + **/ + @Schema(description = "") + public Boolean isSuspiciousUrl() { + return suspiciousUrl; + } + + public void setSuspiciousUrl(Boolean suspiciousUrl) { + this.suspiciousUrl = suspiciousUrl; + } + + public TransactionSecurityResponse usedGas(Long usedGas) { + this.usedGas = usedGas; + return this; + } + + /** + * Get usedGas + * @return usedGas + **/ + @Schema(description = "") + public Long getUsedGas() { + return usedGas; + } + + public void setUsedGas(Long usedGas) { + this.usedGas = usedGas; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransactionSecurityResponse transactionSecurityResponse = (TransactionSecurityResponse) o; + return Objects.equals(this.erc20AllowanceChanges, transactionSecurityResponse.erc20AllowanceChanges) && + Objects.equals(this.erc20BalanceChanges, transactionSecurityResponse.erc20BalanceChanges) && + Objects.equals(this.erc721BalanceChanges, transactionSecurityResponse.erc721BalanceChanges) && + Objects.equals(this.flagged, transactionSecurityResponse.flagged) && + Objects.equals(this.isRevert, transactionSecurityResponse.isRevert) && + Objects.equals(this.isSimulated, transactionSecurityResponse.isSimulated) && + Objects.equals(this.logs, transactionSecurityResponse.logs) && + Objects.equals(this.nativeBalanceChanges, transactionSecurityResponse.nativeBalanceChanges) && + Objects.equals(this.revertReason, transactionSecurityResponse.revertReason) && + Objects.equals(this.simulateFailedReason, transactionSecurityResponse.simulateFailedReason) && + Objects.equals(this.suspiciousAddresses, transactionSecurityResponse.suspiciousAddresses) && + Objects.equals(this.suspiciousUrl, transactionSecurityResponse.suspiciousUrl) && + Objects.equals(this.usedGas, transactionSecurityResponse.usedGas); + } + + @Override + public int hashCode() { + return Objects.hash(erc20AllowanceChanges, erc20BalanceChanges, erc721BalanceChanges, flagged, isRevert, isSimulated, logs, nativeBalanceChanges, revertReason, simulateFailedReason, suspiciousAddresses, suspiciousUrl, usedGas); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TransactionSecurityResponse {\n"); + + sb.append(" erc20AllowanceChanges: ").append(toIndentedString(erc20AllowanceChanges)).append("\n"); + sb.append(" erc20BalanceChanges: ").append(toIndentedString(erc20BalanceChanges)).append("\n"); + sb.append(" erc721BalanceChanges: ").append(toIndentedString(erc721BalanceChanges)).append("\n"); + sb.append(" flagged: ").append(toIndentedString(flagged)).append("\n"); + sb.append(" isRevert: ").append(toIndentedString(isRevert)).append("\n"); + sb.append(" isSimulated: ").append(toIndentedString(isSimulated)).append("\n"); + sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); + sb.append(" nativeBalanceChanges: ").append(toIndentedString(nativeBalanceChanges)).append("\n"); + sb.append(" revertReason: ").append(toIndentedString(revertReason)).append("\n"); + sb.append(" simulateFailedReason: ").append(toIndentedString(simulateFailedReason)).append("\n"); + sb.append(" suspiciousAddresses: ").append(toIndentedString(suspiciousAddresses)).append("\n"); + sb.append(" suspiciousUrl: ").append(toIndentedString(suspiciousUrl)).append("\n"); + sb.append(" usedGas: ").append(toIndentedString(usedGas)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/V4LpLockerLockInfoResp.java b/src/main/java/io/gopluslabs/client/model/V4LpLockerLockInfoResp.java new file mode 100644 index 0000000..b8aa6dd --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/V4LpLockerLockInfoResp.java @@ -0,0 +1,230 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +/** + * V4LpLockerLockInfoResp + */ + + + +public class V4LpLockerLockInfoResp { + @SerializedName("endTime") + private Long endTime = null; + + @SerializedName("lockId") + private String lockId = null; + + @SerializedName("nftId") + private String nftId = null; + + @SerializedName("nftPositionManager") + private String nftPositionManager = null; + + @SerializedName("owner") + private String owner = null; + + @SerializedName("poolId") + private String poolId = null; + + @SerializedName("startTime") + private Long startTime = null; + + public V4LpLockerLockInfoResp endTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * 解锁时间戳 + * @return endTime + **/ + @Schema(description = "解锁时间戳") + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public V4LpLockerLockInfoResp lockId(String lockId) { + this.lockId = lockId; + return this; + } + + /** + * lock id + * @return lockId + **/ + @Schema(description = "lock id") + public String getLockId() { + return lockId; + } + + public void setLockId(String lockId) { + this.lockId = lockId; + } + + public V4LpLockerLockInfoResp nftId(String nftId) { + this.nftId = nftId; + return this; + } + + /** + * nft id + * @return nftId + **/ + @Schema(description = "nft id") + public String getNftId() { + return nftId; + } + + public void setNftId(String nftId) { + this.nftId = nftId; + } + + public V4LpLockerLockInfoResp nftPositionManager(String nftPositionManager) { + this.nftPositionManager = nftPositionManager; + return this; + } + + /** + * nft Position Manager + * @return nftPositionManager + **/ + @Schema(description = "nft Position Manager") + public String getNftPositionManager() { + return nftPositionManager; + } + + public void setNftPositionManager(String nftPositionManager) { + this.nftPositionManager = nftPositionManager; + } + + public V4LpLockerLockInfoResp owner(String owner) { + this.owner = owner; + return this; + } + + /** + * user address + * @return owner + **/ + @Schema(description = "user address") + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public V4LpLockerLockInfoResp poolId(String poolId) { + this.poolId = poolId; + return this; + } + + /** + * pool id + * @return poolId + **/ + @Schema(description = "pool id") + public String getPoolId() { + return poolId; + } + + public void setPoolId(String poolId) { + this.poolId = poolId; + } + + public V4LpLockerLockInfoResp startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * 开始时间戳 + * @return startTime + **/ + @Schema(description = "开始时间戳") + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V4LpLockerLockInfoResp v4LpLockerLockInfoResp = (V4LpLockerLockInfoResp) o; + return Objects.equals(this.endTime, v4LpLockerLockInfoResp.endTime) && + Objects.equals(this.lockId, v4LpLockerLockInfoResp.lockId) && + Objects.equals(this.nftId, v4LpLockerLockInfoResp.nftId) && + Objects.equals(this.nftPositionManager, v4LpLockerLockInfoResp.nftPositionManager) && + Objects.equals(this.owner, v4LpLockerLockInfoResp.owner) && + Objects.equals(this.poolId, v4LpLockerLockInfoResp.poolId) && + Objects.equals(this.startTime, v4LpLockerLockInfoResp.startTime); + } + + @Override + public int hashCode() { + return Objects.hash(endTime, lockId, nftId, nftPositionManager, owner, poolId, startTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V4LpLockerLockInfoResp {\n"); + + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" lockId: ").append(toIndentedString(lockId)).append("\n"); + sb.append(" nftId: ").append(toIndentedString(nftId)).append("\n"); + sb.append(" nftPositionManager: ").append(toIndentedString(nftPositionManager)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" poolId: ").append(toIndentedString(poolId)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/io/gopluslabs/client/model/V4NftLockerLockInfos.java b/src/main/java/io/gopluslabs/client/model/V4NftLockerLockInfos.java new file mode 100644 index 0000000..6705020 --- /dev/null +++ b/src/main/java/io/gopluslabs/client/model/V4NftLockerLockInfos.java @@ -0,0 +1,195 @@ +/* + * GoPlus Security API Document + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package io.gopluslabs.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.gopluslabs.client.model.TaNftLockerLockInfo; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/** + * V4 Token NFT Lock + */ +@Schema(description = "V4 Token NFT Lock") + + +public class V4NftLockerLockInfos { + @SerializedName("chainId") + private String chainId = null; + + @SerializedName("lockList") + private List lockList = null; + + @SerializedName("nftPositionManager") + private String nftPositionManager = null; + + @SerializedName("poolId") + private String poolId = null; + + @SerializedName("url") + private String url = null; + + public V4NftLockerLockInfos chainId(String chainId) { + this.chainId = chainId; + return this; + } + + /** + * chain id + * @return chainId + **/ + @Schema(description = "chain id") + public String getChainId() { + return chainId; + } + + public void setChainId(String chainId) { + this.chainId = chainId; + } + + public V4NftLockerLockInfos lockList(List lockList) { + this.lockList = lockList; + return this; + } + + public V4NftLockerLockInfos addLockListItem(TaNftLockerLockInfo lockListItem) { + if (this.lockList == null) { + this.lockList = new ArrayList(); + } + this.lockList.add(lockListItem); + return this; + } + + /** + * lock info list + * @return lockList + **/ + @Schema(description = "lock info list") + public List getLockList() { + return lockList; + } + + public void setLockList(List lockList) { + this.lockList = lockList; + } + + public V4NftLockerLockInfos nftPositionManager(String nftPositionManager) { + this.nftPositionManager = nftPositionManager; + return this; + } + + /** + * nft Position Manager + * @return nftPositionManager + **/ + @Schema(description = "nft Position Manager") + public String getNftPositionManager() { + return nftPositionManager; + } + + public void setNftPositionManager(String nftPositionManager) { + this.nftPositionManager = nftPositionManager; + } + + public V4NftLockerLockInfos poolId(String poolId) { + this.poolId = poolId; + return this; + } + + /** + * pool id + * @return poolId + **/ + @Schema(description = "pool id") + public String getPoolId() { + return poolId; + } + + public void setPoolId(String poolId) { + this.poolId = poolId; + } + + public V4NftLockerLockInfos url(String url) { + this.url = url; + return this; + } + + /** + * url + * @return url + **/ + @Schema(description = "url") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V4NftLockerLockInfos v4NftLockerLockInfos = (V4NftLockerLockInfos) o; + return Objects.equals(this.chainId, v4NftLockerLockInfos.chainId) && + Objects.equals(this.lockList, v4NftLockerLockInfos.lockList) && + Objects.equals(this.nftPositionManager, v4NftLockerLockInfos.nftPositionManager) && + Objects.equals(this.poolId, v4NftLockerLockInfos.poolId) && + Objects.equals(this.url, v4NftLockerLockInfos.url); + } + + @Override + public int hashCode() { + return Objects.hash(chainId, lockList, nftPositionManager, poolId, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V4NftLockerLockInfos {\n"); + + sb.append(" chainId: ").append(toIndentedString(chainId)).append("\n"); + sb.append(" lockList: ").append(toIndentedString(lockList)).append("\n"); + sb.append(" nftPositionManager: ").append(toIndentedString(nftPositionManager)).append("\n"); + sb.append(" poolId: ").append(toIndentedString(poolId)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +}