Created
May 15, 2019 10:46
-
-
Save lankydan/8a8cb0c69be6ba68af697faadb91de65 to your computer and use it in GitHub Desktop.
Verifying transactions with csv attachments - message contract
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
class MessageContract : Contract { | |
interface Commands : CommandData { | |
class Send(attachmentId: AttachmentId) : CommandWithAttachmentId(attachmentId), Commands | |
} | |
abstract class CommandWithAttachmentId(val attachmentId: AttachmentId) : CommandData { | |
override fun equals(other: Any?) = other?.javaClass == javaClass | |
override fun hashCode() = javaClass.name.hashCode() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment