Skip to content

Commit

Permalink
ffa
Browse files Browse the repository at this point in the history
ffa
  • Loading branch information
abenkdh committed Feb 11, 2020
1 parent 0825853 commit b18f412
Show file tree
Hide file tree
Showing 11 changed files with 79 additions and 151 deletions.
Binary file modified .gradle/5.4.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

180 changes: 45 additions & 135 deletions .idea/workspace.xml

Large diffs are not rendered by default.

46 changes: 32 additions & 14 deletions bsjson/src/main/java/com/benkkstudio/bsjson/BSJsonV2.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,39 @@ public void onError(ANError error) {
}

private void loadNow() {
AndroidNetworking.post(server)
.addBodyParameter("data", API.toBase64(jsObj.toString()))
.setPriority(Priority.MEDIUM)
.build()
.getAsString(new StringRequestListener() {
@Override
public void onResponse(String response) {
bsJsonV2Listener.onLoaded(response);
}
if(jsObj != null){
AndroidNetworking.post(server)
.addBodyParameter("data", API.toBase64(jsObj.toString()))
.setPriority(Priority.MEDIUM)
.build()
.getAsString(new StringRequestListener() {
@Override
public void onResponse(String response) {
bsJsonV2Listener.onLoaded(response);
}

@Override
public void onError(ANError error) {
bsJsonV2Listener.onError(error.getErrorBody());
}
});
} else {
AndroidNetworking.post(server)
.setPriority(Priority.MEDIUM)
.build()
.getAsString(new StringRequestListener() {
@Override
public void onResponse(String response) {
bsJsonV2Listener.onLoaded(response);
}

@Override
public void onError(ANError error) {
bsJsonV2Listener.onError(error.getErrorBody());
}
});
}

@Override
public void onError(ANError error) {
bsJsonV2Listener.onError(error.getErrorBody());
}
});
}

public static class Builder {
Expand Down

0 comments on commit b18f412

Please sign in to comment.