From ebe66cf614c31737a4a57bfcf22df29019676312 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 20 Sep 2019 12:58:45 +0600 Subject: [PATCH] initially added Content interface and TextContent child interface --- .../insanusmokrassar/postssystem/core/content/Content.kt | 9 +++++++++ .../postssystem/core/content/TextContent.kt | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 src/main/kotlin/com/github/insanusmokrassar/postssystem/core/content/Content.kt create mode 100644 src/main/kotlin/com/github/insanusmokrassar/postssystem/core/content/TextContent.kt diff --git a/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/content/Content.kt b/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/content/Content.kt new file mode 100644 index 00000000..f4bd8786 --- /dev/null +++ b/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/content/Content.kt @@ -0,0 +1,9 @@ +package com.github.insanusmokrassar.postssystem.core.content + +import org.joda.time.DateTime + +typealias ContentId = String + +interface Content { + val id: ContentId +} diff --git a/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/content/TextContent.kt b/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/content/TextContent.kt new file mode 100644 index 00000000..f3bc7bff --- /dev/null +++ b/src/main/kotlin/com/github/insanusmokrassar/postssystem/core/content/TextContent.kt @@ -0,0 +1,5 @@ +package com.github.insanusmokrassar.postssystem.core.content + +interface TextContent : Content { + val text: String +} \ No newline at end of file