|
@@ -5,12 +5,14 @@ import java.util.Iterator;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
import org.json.JSONObject;
|
|
|
|
|
|
|
|
+import IRC.Server;
|
|
|
|
+
|
|
public class ISPdata {
|
|
public class ISPdata {
|
|
|
|
|
|
private ISP ISP;
|
|
private ISP ISP;
|
|
private String website;
|
|
private String website;
|
|
private String description;
|
|
private String description;
|
|
- private String [] chatrooms;
|
|
|
|
|
|
+ private Server [] ircChan;
|
|
private int progressStatus;
|
|
private int progressStatus;
|
|
private int membersCount;
|
|
private int membersCount;
|
|
private int subscribersCount;
|
|
private int subscribersCount;
|
|
@@ -19,13 +21,13 @@ public class ISPdata {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- public ISPdata(data.ISP ISP, String website, String description, String[] chatrooms, int progressStatus,
|
|
|
|
|
|
+ public ISPdata(data.ISP ISP, String website, String description, Server[] chatrooms, int progressStatus,
|
|
int membersCount, int subscribersCount) {
|
|
int membersCount, int subscribersCount) {
|
|
super();
|
|
super();
|
|
this.ISP = ISP;
|
|
this.ISP = ISP;
|
|
this.website = website;
|
|
this.website = website;
|
|
this.description = description;
|
|
this.description = description;
|
|
- this.chatrooms = chatrooms;
|
|
|
|
|
|
+ this.ircChan = chatrooms;
|
|
this.progressStatus = progressStatus;
|
|
this.progressStatus = progressStatus;
|
|
this.membersCount = membersCount;
|
|
this.membersCount = membersCount;
|
|
this.subscribersCount = subscribersCount;
|
|
this.subscribersCount = subscribersCount;
|
|
@@ -36,8 +38,6 @@ public class ISPdata {
|
|
this.website = jo.getString("website");
|
|
this.website = jo.getString("website");
|
|
isp.setName(jo.getString("name"));
|
|
isp.setName(jo.getString("name"));
|
|
JSONArray chatrooms = jo.getJSONArray("chatrooms");
|
|
JSONArray chatrooms = jo.getJSONArray("chatrooms");
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public String getWebsite() {
|
|
public String getWebsite() {
|
|
@@ -50,7 +50,7 @@ public class ISPdata {
|
|
}
|
|
}
|
|
|
|
|
|
public String[] getChatrooms() {
|
|
public String[] getChatrooms() {
|
|
- return chatrooms;
|
|
|
|
|
|
+ return ircChan;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|