Update Data.java
This commit is contained in:
parent
7f2ab6372f
commit
81429cd517
@ -9,12 +9,12 @@ public class Data {
|
|||||||
private String token = "";
|
private String token = "";
|
||||||
|
|
||||||
// User ID : Player ID
|
// User ID : Player ID
|
||||||
private HashMap<Integer, UUID> linkedChats = new HashMap<Integer, UUID>();
|
private HashMap<Long, UUID> linkedChats = new HashMap<Long, UUID>();
|
||||||
|
|
||||||
// Token : Player ID
|
// Token : Player ID
|
||||||
private HashMap<String, UUID> linkCodes = new HashMap<String, UUID>();
|
private HashMap<String, UUID> linkCodes = new HashMap<String, UUID>();
|
||||||
|
|
||||||
public List<Integer> chat_ids = new ArrayList<Integer>();
|
public List<Long> chat_ids = new ArrayList<Long>();
|
||||||
|
|
||||||
private boolean firstUse = true;
|
private boolean firstUse = true;
|
||||||
|
|
||||||
@ -28,11 +28,11 @@ public class Data {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// chats
|
// chats
|
||||||
public HashMap<Integer, UUID> getLinkedChats() {
|
public HashMap<Long, UUID> getLinkedChats() {
|
||||||
return linkedChats;
|
return linkedChats;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLinkedChats(HashMap<Integer, UUID> linkedChats) {
|
public void setLinkedChats(HashMap<Long, UUID> linkedChats) {
|
||||||
this.linkedChats = linkedChats;
|
this.linkedChats = linkedChats;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,11 +44,11 @@ public class Data {
|
|||||||
this.linkCodes = linkCodes;
|
this.linkCodes = linkCodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Integer> getIds() {
|
public List<Long> getIds() {
|
||||||
return chat_ids;
|
return chat_ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIds(List<Integer> ids) {
|
public void setIds(List<Long> ids) {
|
||||||
this.chat_ids = ids;
|
this.chat_ids = ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ public class Data {
|
|||||||
this.firstUse = firstUse;
|
this.firstUse = firstUse;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addChatPlayerLink(int chatID, UUID player) {
|
public void addChatPlayerLink(long chatID, UUID player) {
|
||||||
linkedChats.put(chatID, player);
|
linkedChats.put(chatID, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ public class Data {
|
|||||||
linkCodes.remove(code);
|
linkCodes.remove(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
public UUID getUUIDFromUserID(int userID) {
|
public UUID getUUIDFromUserID(long userID) {
|
||||||
return linkedChats.get(userID);
|
return linkedChats.get(userID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user