diff options
author | xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> | 2021-02-08 18:54:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 18:54:16 +0100 |
commit | ff195ef6bc9bb6408e33b19c85959381909af8de (patch) | |
tree | 555a872c2abb1c93b1d98140e165cb10e0793fe0 /java/RequestNetwork.java | |
parent | Delete AndroidManifest.xml (diff) | |
download | xManager-ff195ef6bc9bb6408e33b19c85959381909af8de.tar xManager-ff195ef6bc9bb6408e33b19c85959381909af8de.tar.gz xManager-ff195ef6bc9bb6408e33b19c85959381909af8de.tar.bz2 xManager-ff195ef6bc9bb6408e33b19c85959381909af8de.tar.lz xManager-ff195ef6bc9bb6408e33b19c85959381909af8de.tar.xz xManager-ff195ef6bc9bb6408e33b19c85959381909af8de.tar.zst xManager-ff195ef6bc9bb6408e33b19c85959381909af8de.zip |
Diffstat (limited to 'java/RequestNetwork.java')
-rw-r--r-- | java/RequestNetwork.java | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/java/RequestNetwork.java b/java/RequestNetwork.java deleted file mode 100644 index fb148c5..0000000 --- a/java/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); -} -} |