Last active
August 29, 2015 13:56
-
-
Save LuisRBarreras/9116946 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class User { | |
private MessageManager contactManager; | |
private MessageManager messageManager; | |
public construct(contactManager, messageManager) | |
this.contactManager = contactManager; | |
this.messageManager = messageManager; | |
} | |
public void sendMessage(String nameContact, String message) { | |
this.message_manager.sendMessage(); | |
} | |
public Contact getContact(int id) { | |
Contact contact = this.contactManager(id); | |
return contact; | |
} | |
} | |
public class BestYMessageManager implements ContactManager { | |
} | |
public interface MessageManager { | |
void sendMessage(); | |
void reciveMessage(); | |
} | |
public class FastXManagerContacts implements MessageManager { | |
} | |
public interface ConctactManager { | |
showContact(); | |
shotAllContacts(); | |
addContact(); | |
removeContact(); | |
editContact(); | |
findContact(); | |
} | |
public class Contact { | |
private String name; | |
private String status; | |
} | |
public class Login implements { | |
public String authenticate(String user, String password); | |
} | |
public interface authentication { | |
authenticate(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
skeleton of chat-server program