Last active
May 17, 2018 12:48
-
-
Save v3rm0n/5d643866ad652cbc7f3affa41f96e286 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
fun MessageChannel.sendMessage(o: Any): Boolean { | |
return this.send(MessageBuilder.withPayload(o).build()) | |
} | |
// Usage | |
val mailMessageChannel // A MessageChannel instance | |
fun sendEmail(message: Message) { | |
mailMessageChannel.sendMessage(message) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment