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:
Harsh Shandilya 2023-12-03 21:52:38 +05:30
parent 1d5302f26c
commit 6084e5bb30
No known key found for this signature in database
13 changed files with 0 additions and 391 deletions

View file

@ -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,
)

View file

@ -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,
)

View file

@ -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,
)

View file

@ -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,
)

View file

@ -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,
)

View file

@ -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,
)

View file

@ -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,
)

View file

@ -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)