From 0261e9b60d7fa4fb9efbab9d83457168b8069c19 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 20 Sep 2019 13:01:32 +0600 Subject: [PATCH] add Post abstraction --- .../github/insanusmokrassar/postssystem/core/Post.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/kotlin/com/github/insanusmokrassar/postssystem/core/Post.kt diff --git a/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/Post.kt b/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/Post.kt new file mode 100644 index 00000000..11ddd6a3 --- /dev/null +++ b/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/Post.kt @@ -0,0 +1,10 @@ +package com.github.insanusmokrassar.postssystem.core + +import com.github.insanusmokrassar.postssystem.core.content.Content + +typealias PostId = String + +interface Post { + val id: PostId + val content: List +} \ No newline at end of file