mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
refactor: remove all Shiori code
Their API is Terrible, Horrible, No Good, Very Bad[1][2] 1: It's _fine_ but I want more 2: https://en.wikipedia.org/wiki/Alexander_and_the_Terrible,_Horrible,_No_Good,_Very_Bad_Day
This commit is contained in:
parent
1d5302f26c
commit
6084e5bb30
13 changed files with 0 additions and 391 deletions
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2021-2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model.shiori
|
||||
|
||||
import dev.drewhamilton.poko.Poko
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@Poko
|
||||
class Account(
|
||||
val id: Int,
|
||||
val username: String,
|
||||
val owner: Boolean,
|
||||
)
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2021-2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model.shiori
|
||||
|
||||
import dev.drewhamilton.poko.Poko
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@Poko
|
||||
class AuthRequest(
|
||||
val username: String,
|
||||
val password: String,
|
||||
val remember: Boolean = true,
|
||||
val owner: Boolean = false,
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2022-2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model.shiori
|
||||
|
||||
import dev.drewhamilton.poko.Poko
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@Poko
|
||||
class AuthResponse(
|
||||
val session: String,
|
||||
val expires: String,
|
||||
val account: Account,
|
||||
)
|
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2021-2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model.shiori
|
||||
|
||||
import dev.drewhamilton.poko.Poko
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@Poko
|
||||
class Bookmark(
|
||||
val id: Int,
|
||||
val url: String,
|
||||
val title: String,
|
||||
val excerpt: String,
|
||||
val author: String,
|
||||
val public: Int,
|
||||
val modified: String,
|
||||
val imageURL: String,
|
||||
val hasContent: Boolean,
|
||||
val hasArchive: Boolean,
|
||||
val tags: List<Tag>,
|
||||
val createArchive: Boolean,
|
||||
)
|
|
@ -1,21 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2021-2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model.shiori
|
||||
|
||||
import dev.drewhamilton.poko.Poko
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@Poko
|
||||
class BookmarkRequest(
|
||||
val url: String,
|
||||
val createArchive: Boolean,
|
||||
val public: Int,
|
||||
val tags: List<Tag>,
|
||||
val title: String,
|
||||
val excerpt: String,
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2022-2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model.shiori
|
||||
|
||||
import dev.drewhamilton.poko.Poko
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@Poko
|
||||
class BookmarksResponse(
|
||||
val bookmarks: List<Bookmark>,
|
||||
val maxPage: Int,
|
||||
val page: Int,
|
||||
)
|
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model.shiori
|
||||
|
||||
import dev.drewhamilton.poko.Poko
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@Poko
|
||||
class EditedBookmark(
|
||||
val id: Int,
|
||||
val url: String,
|
||||
val title: String,
|
||||
val excerpt: String? = null,
|
||||
val author: String? = null,
|
||||
val public: Int? = null,
|
||||
val modified: String? = null,
|
||||
val imageURL: String? = null,
|
||||
val hasContent: Boolean? = null,
|
||||
val hasArchive: Boolean? = null,
|
||||
val tags: List<Tag>? = null,
|
||||
val createArchive: Boolean? = null,
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2022-2023 Harsh Shandilya.
|
||||
* Use of this source code is governed by an MIT-style
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
package dev.msfjarvis.claw.model.shiori
|
||||
|
||||
import dev.drewhamilton.poko.Poko
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable @Poko class Tag(val name: String)
|
Loading…
Add table
Add a link
Reference in a new issue