-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from mikepenz/develop
dev -> main
- Loading branch information
Showing
9 changed files
with
133 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
library/src/commonMain/kotlin/com/mikepenz/storyblok/sdk/model/Alternate.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.mikepenz.storyblok.sdk.model | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* | ||
*/ | ||
@Serializable | ||
open class Alternate { | ||
/** | ||
* Numeric id | ||
*/ | ||
var id: Long = 0 | ||
|
||
/** | ||
* The name you give this story | ||
*/ | ||
var name: String? = null | ||
|
||
/** | ||
* The slug / path you give this story | ||
*/ | ||
var slug: String? = null | ||
|
||
/** | ||
* Combined parent folder and current slug | ||
*/ | ||
@SerialName("full_slug") | ||
var fullSlug: String? = null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
library/src/commonMain/kotlin/com/mikepenz/storyblok/sdk/model/Slug.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.mikepenz.storyblok.sdk.model | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* | ||
*/ | ||
@Serializable | ||
open class Slug { | ||
/** | ||
* the slug name (value) | ||
*/ | ||
var name: String? = null | ||
|
||
/** | ||
* the path for this slug (value) | ||
*/ | ||
var path: String? = null | ||
|
||
/** | ||
* the lang of the slug (value) | ||
*/ | ||
var lang: String? = null | ||
|
||
/** | ||
* Is this content entry a folder (true/false) | ||
*/ | ||
@SerialName("is_folder") | ||
var isFolder: Boolean? = null | ||
|
||
/** | ||
* Parent folder id | ||
*/ | ||
@SerialName("parent_id") | ||
var parentId: Int? = null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters