summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com/xc3fff0e
diff options
context:
space:
mode:
authorxC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com>2022-01-17 14:49:41 +0100
committerGitHub <noreply@github.com>2022-01-17 14:49:41 +0100
commit514398920df76a2b862a01e3da21bd13574f5fe8 (patch)
tree30462edb2efaf7f9f35efc5f3d5c905d8eadb931 /app/src/main/java/com/xc3fff0e
parentUpdate MainActivity.java (diff)
downloadxManager-514398920df76a2b862a01e3da21bd13574f5fe8.tar
xManager-514398920df76a2b862a01e3da21bd13574f5fe8.tar.gz
xManager-514398920df76a2b862a01e3da21bd13574f5fe8.tar.bz2
xManager-514398920df76a2b862a01e3da21bd13574f5fe8.tar.lz
xManager-514398920df76a2b862a01e3da21bd13574f5fe8.tar.xz
xManager-514398920df76a2b862a01e3da21bd13574f5fe8.tar.zst
xManager-514398920df76a2b862a01e3da21bd13574f5fe8.zip
Diffstat (limited to 'app/src/main/java/com/xc3fff0e')
-rw-r--r--app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java102
1 files changed, 51 insertions, 51 deletions
diff --git a/app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java b/app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java
index fb148c5..f817091 100644
--- a/app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java
+++ b/app/src/main/java/com/xc3fff0e/xmanager/RequestNetwork.java
@@ -1,52 +1,52 @@
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);
-}
-}
+
+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, HashMap<String, Object> responseHeaders);
+ public void onErrorResponse(String tag, String message);
+ }
+}