Created
July 9, 2018 16:39
-
-
Save mayuroks/3b22e498bb66d81a1d048e15d2b13d3c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Main interface for accessing data. It extends EventListener to receive | |
* incoming events from a remote data source. In this case, a chat server. | |
*/ | |
public interface DataSource extends EventListener { | |
void connect(String username) throws URISyntaxException; | |
void disconnect(); | |
Flowable<ChatMessage> sendMessage(ChatMessage chatMessage); | |
void setEventListener(EventListener eventListener); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment