All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.everitoken.sdk.java.apiResource.EvtLinkStatus Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package io.everitoken.sdk.java.apiResource;

import com.alibaba.fastjson.JSONObject;

import org.jetbrains.annotations.NotNull;

import io.everitoken.sdk.java.exceptions.ApiResponseException;
import io.everitoken.sdk.java.param.RequestParams;

public class EvtLinkStatus extends OkhttpApi {

    public EvtLinkStatus(boolean block) {
        super(block ? "/v1/evt_link/get_trx_id_for_link_id" : "/v1/chain/get_trx_id_for_link_id");
    }

    public EvtLinkStatus(boolean block, @NotNull ApiRequestConfig apiRequestConfig) {
        super(block ? "/v1/evt_link/get_trx_id_for_link_id" : "/v1/chain/get_trx_id_for_link_id", apiRequestConfig);
    }

    public JSONObject request(RequestParams requestParams) throws ApiResponseException {
        String res = super.makeRequest(requestParams);
        return JSONObject.parseObject(res);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy