@@ -0,0 +1,783 @@
+package pro.simpleproject.core.intra;%0A%0Aimport java.util.LinkedHashMap;%0Aimport java.util.Map;%0A%0Aimport pro.simpleproject.core.intra.server.ServerExecutor;%0A%0Apublic class IntraModel %7B%0A%0A%09private static final Map%3CString, IntraContact%3E contacts = new LinkedHashMap%3C%3E();%0A%0A%09public static IntraContact setContact(IntraContact contact) %7B%0A%09%09return contacts.put(contact.getContact(), contact);%0A%09%7D%0A%0A%09public static IntraContact getContact(String contact) %7B%0A%09%09return contacts.get(contact);%0A%09%7D%0A%0A%09public static boolean hasContact(String contact) %7B%0A%09%09return contacts.containsKey(contact);%0A%09%7D%0A%0A%09public static void removeContact(String contact) %7B%0A%09%09contacts.remove(contact);%0A%09%7D%0A%0A%09public static void close() %7B%0A%09%09for (IntraContact c : contacts.values()) %7B%0A%09%09%09c.close();%0A%09%09%7D%0A%09%09ServerExecutor.close();%0A%09%7D%0A%0A%7D%0A

Create IntraModel.java