Skip to content

Instantly share code, notes, and snippets.

@mayuroks
Last active July 9, 2018 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayuroks/f3fae4c1ae33bf568b0e80aaa8b96d17 to your computer and use it in GitHub Desktop.
Save mayuroks/f3fae4c1ae33bf568b0e80aaa8b96d17 to your computer and use it in GitHub Desktop.
/**
* This is a contract between chat view and chat presenter.
*
*/
public interface ChatContract {
interface View extends BaseView<Presenter>, EventListener {
void onMessageDelivered(ChatMessage chatMessage);
}
interface Presenter extends BasePresenter, EventListener {
void sendMessage(ChatMessage chatMessage);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment