add trigger and publishingkeyreceiver interfaces

This commit is contained in:
InsanusMokrassar 2020-08-22 11:36:39 +06:00
parent 71ee924fb7
commit fbae8cac93
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
package com.insanusmokrassar.postssystem.core.publishing
import com.insanusmokrassar.postssystem.core.post.PostId
interface PublishingKeyReceiver : Trigger {
suspend fun acceptKey(postId: PostId, publishingKey: TriggerControlKey)
}

View File

@ -0,0 +1,7 @@
package com.insanusmokrassar.postssystem.core.publishing
typealias TriggerId = String
interface Trigger {
val id: TriggerId
}