package com.ixab.UserInfoHandling; import com.ixab.GUI.ErrorMessageGate; import com.ixab.Logging.Logger; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.io.*; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; public class UserInfo { private static JSONArray userFollowData; // TODO: change this to an arraylist of multiple jsonarrays private static String userFollowCount; private static int getFollowCount() { return Integer.parseInt(userFollowCount); } public static ArrayList getFollowedChannelNames() { ArrayList names = new ArrayList(); for (int i = 0; i100, weil dann mehrere jsonarrays benötigt werden. if (result == "null") { userFollowData = null; userFollowCount = null; } else { userFollowData = new JSONArray(object.getJSONArray("follows").toString()); userFollowCount = result; } } return true; } }