From ff195ef6bc9bb6408e33b19c85959381909af8de Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Tue, 9 Feb 2021 01:54:16 +0800 Subject: Delete java directory --- java/RequestNetwork.java | 52 ------------------------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 java/RequestNetwork.java (limited to 'java/RequestNetwork.java') 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 params = new HashMap<>(); -private HashMap headers = new HashMap<>(); - -private Activity activity; - -private int requestType = 0; - -public RequestNetwork(Activity activity) { -this.activity = activity; -} - -public void setHeaders(HashMap headers) { -this.headers = headers; -} - -public void setParams(HashMap params, int requestType) { -this.params = params; -this.requestType = requestType; -} - -public HashMap getParams() { -return params; -} - -public HashMap 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); -} -} -- cgit v1.2.3