Skip to content

Commit 1b868bf

Browse files
committed
Moved CodeExample, Section, and Syntax data classes into KotlinTopicDetails.kt.
1 parent dad3e5a commit 1b868bf

File tree

4 files changed

+20
-29
lines changed

4 files changed

+20
-29
lines changed

composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/data/detail/model/CodeExample.kt

Lines changed: 0 additions & 10 deletions
This file was deleted.

composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/data/detail/model/KotlinTopicDetails.kt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,24 @@ data class KotlinTopicDetails(
1313
val pitfalls: List<String> = emptyList(),
1414
val relatedTopics: List<String> = emptyList(),
1515
val metadata: Map<String, JsonElement> = emptyMap(),
16+
)
17+
18+
@Serializable
19+
data class CodeExample(
20+
val description: String? = null,
21+
val code: String,
22+
val language: String = "kotlin",
23+
)
24+
25+
@Serializable
26+
data class Section(
27+
val heading: String? = null,
28+
val content: String? = null,
29+
val codeExamples: List<CodeExample> = emptyList(),
30+
)
31+
32+
@Serializable
33+
data class Syntax(
34+
val signature: String,
35+
val notes: String? = null,
1636
)

composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/data/detail/model/Section.kt

Lines changed: 0 additions & 10 deletions
This file was deleted.

composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/data/detail/model/Syntax.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)