Skip to content

Instantly share code, notes, and snippets.

@LuisRBarreras
Last active August 29, 2015 13:56
Show Gist options
  • Save LuisRBarreras/9116946 to your computer and use it in GitHub Desktop.
Save LuisRBarreras/9116946 to your computer and use it in GitHub Desktop.
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();
}
@LuisRBarreras
Copy link
Author

skeleton of chat-server program

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment