add trigger and publishingkeyreceiver interfaces
This commit is contained in:
parent
71ee924fb7
commit
fbae8cac93
@ -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)
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.insanusmokrassar.postssystem.core.publishing
|
||||||
|
|
||||||
|
typealias TriggerId = String
|
||||||
|
|
||||||
|
interface Trigger {
|
||||||
|
val id: TriggerId
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user