С java работаю не долго (прошу сильно не пинать:angel: )
Есть метод:
Код
private void sync(final int delayAfterError) {
        if (!mActive || !Profile.getInstance().isRegistred() || mInProgress)
            return;
        if (mBarCodeImageUrl == null) {
            mInProgress = true;
            ApiService.getApi().getCard("USE_KEY", "" + Profile.getInstance().getUserId(),  "getcart").enqueue(new Callback<NetGetCardResponse>() {
                @Override
                public void onResponse(Response<NetGetCardResponse> response, Retrofit retrofit) {
                    mInProgress = false;
                    if (response.isSuccess()) {
                        mBarCodeImageUrl = response.body().data.barcode;
                        mBarCodeNumber = response.body().data.num_barcode;
                        mBarCodeImageFilePath = null;
                        save();
                        sync();
                    } else {
                        delayedSync(delayAfterError);
                    }
                }
                @Override
                public void onFailure(Throwable t) {
                    mInProgress = false;
                    delayedSync(delayAfterError);
                }
            });
            return;
        }
}
Как мне GETCART поменять на другую строку. Пробовал через public string отдельным параметром, не получается. Возвращает NULL