summaryrefslogtreecommitdiffstats
path: root/app/src/main
diff options
context:
space:
mode:
authorxC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com>2021-09-17 11:59:02 +0200
committerGitHub <noreply@github.com>2021-09-17 11:59:02 +0200
commitfde0e1b504da7dd1f2a1324a000cb390b4f13287 (patch)
tree8fc01dd0f1a21731813fedc857103438fe1e75e2 /app/src/main
parentDelete MainActivity.java (diff)
downloadxManager-fde0e1b504da7dd1f2a1324a000cb390b4f13287.tar
xManager-fde0e1b504da7dd1f2a1324a000cb390b4f13287.tar.gz
xManager-fde0e1b504da7dd1f2a1324a000cb390b4f13287.tar.bz2
xManager-fde0e1b504da7dd1f2a1324a000cb390b4f13287.tar.lz
xManager-fde0e1b504da7dd1f2a1324a000cb390b4f13287.tar.xz
xManager-fde0e1b504da7dd1f2a1324a000cb390b4f13287.tar.zst
xManager-fde0e1b504da7dd1f2a1324a000cb390b4f13287.zip
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java b/app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java
deleted file mode 100644
index fb148c5..0000000
--- a/app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package com.xc3fff0e.xmanager;
-
-import android.app.Activity;
-
-import java.util.HashMap;
-
-public class RequestNetwork {
-private HashMap<String, Object> params = new HashMap<>();
-private HashMap<String, Object> headers = new HashMap<>();
-
-private Activity activity;
-
-private int requestType = 0;
-
-public RequestNetwork(Activity activity) {
-this.activity = activity;
-}
-
-public void setHeaders(HashMap<String, Object> headers) {
-this.headers = headers;
-}
-
-public void setParams(HashMap<String, Object> params, int requestType) {
-this.params = params;
-this.requestType = requestType;
-}
-
-public HashMap<String, Object> getParams() {
-return params;
-}
-
-public HashMap<String, Object> getHeaders() {
-return headers;
-}
-
-public Activity getActivity() {
-return activity;
-}
-
-public int getRequestType() {
-return requestType;
-}
-
-public void startRequestNetwork(String method, String url, String tag, RequestListener requestListener) {
-RequestNetworkController.getInstance().execute(this, method, url, tag, requestListener);
-}
-
-public interface RequestListener {
-public void onResponse(String tag, String response);
-public void onErrorResponse(String tag, String message);
-}
-}