Skip to content

Instantly share code, notes, and snippets.

@SergeyPetrachkov
Created September 3, 2018 06:59
Show Gist options
  • Save SergeyPetrachkov/6a49dcf0102523961914e173eba6abf8 to your computer and use it in GitHub Desktop.
Save SergeyPetrachkov/6a49dcf0102523961914e173eba6abf8 to your computer and use it in GitHub Desktop.
chats service for medium article
protocol ChatsService {
func getChats(request: GetConversationsRequest) throws -> [Message]
func getChatMessages(request: GetConversationMessagesRequest) throws -> [Message]
func submitMessage(request: SubmitMessageRequest) throws -> Message
func getUnreadMessagesNumber() throws -> Int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment