add trigger and publishingkeyreceiver interfaces
This commit is contained in:
@@ -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
|
||||||
|
}
|
Reference in New Issue
Block a user