Behebung diverser Design Fehler im gesammtem Projekt

This commit is contained in:
m_broelemann 2020-12-30 13:09:09 +01:00
parent ff777de343
commit 7467c310b3
4 changed files with 19 additions and 30 deletions

View File

@ -2,25 +2,13 @@ package com.example.aped.communication;
import android.content.Context;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import kotlin.NotImplementedError;
public class Communicator {
@ -53,7 +41,8 @@ public class Communicator{
requestString,
message,
responseListener,
error -> {Log.e("Communicator", "Error during WRITE: " + error.getMessage()); error.printStackTrace();}
error -> {
Log.e("Communicator", "Error during WRITE: " + error.getMessage()); error.printStackTrace(); }
);
requestQueue.add(request);
}

View File

@ -6,20 +6,20 @@ import java.util.List;
public interface IXML {
/**
* reads the list of available devices from the XML
* reads the list of available devices from the XML.
* @return the device names as a list of strings
*/
List<String> getDeviceNames();
/**
* reads the value info of a given device from the XML
* reads the value info of a given device from the XML.
* @param deviceName the name of the relevant device
* @return the value info as a Dictionary
*/
Dictionary<String, Object> getValueInfo(String deviceName);
/**
* reads the port information of a given device from the XML
* reads the port information of a given device from the XML.
* @param deviceName the name of the relevant device
* @return the value info as a Dictionary
*/