faucet api logs
This commit is contained in:
parent
aacf9c50f6
commit
e13abecd7f
1 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,5 @@
|
||||||
package cy.agorise.crystalwallet.apigenerator;
|
package cy.agorise.crystalwallet.apigenerator;
|
||||||
|
|
||||||
import android.util.Log;
|
|
||||||
import android.view.View;
|
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -77,6 +73,7 @@ public abstract class BitsharesFaucetApiGenerator {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(Call<RegisterAccountResponse> call, Response<RegisterAccountResponse> response) {
|
public void onResponse(Call<RegisterAccountResponse> call, Response<RegisterAccountResponse> response) {
|
||||||
if (response.isSuccessful()) {
|
if (response.isSuccessful()) {
|
||||||
|
System.out.println("faucet answer " + response);
|
||||||
RegisterAccountResponse resp = response.body();
|
RegisterAccountResponse resp = response.body();
|
||||||
if (resp.account != null) {
|
if (resp.account != null) {
|
||||||
try {
|
try {
|
||||||
|
@ -86,6 +83,7 @@ public abstract class BitsharesFaucetApiGenerator {
|
||||||
SYNC.notifyAll();
|
SYNC.notifyAll();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
System.out.println("ERROR account name different" + resp.account.name);
|
||||||
//ERROR
|
//ERROR
|
||||||
synchronized (SYNC) {
|
synchronized (SYNC) {
|
||||||
SYNC.notifyAll();
|
SYNC.notifyAll();
|
||||||
|
@ -98,6 +96,7 @@ public abstract class BitsharesFaucetApiGenerator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
System.out.println("ERROR response doesn't have account " + response.message());
|
||||||
//ERROR
|
//ERROR
|
||||||
synchronized (SYNC) {
|
synchronized (SYNC) {
|
||||||
SYNC.notifyAll();
|
SYNC.notifyAll();
|
||||||
|
@ -105,6 +104,7 @@ public abstract class BitsharesFaucetApiGenerator {
|
||||||
|
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
System.out.println("ERROR fetching info");
|
||||||
//ERROR
|
//ERROR
|
||||||
synchronized (SYNC) {
|
synchronized (SYNC) {
|
||||||
SYNC.notifyAll();
|
SYNC.notifyAll();
|
||||||
|
|
Loading…
Reference in a new issue