Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Rename ErrorObject to PkErrorMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-makes-code committed Jan 5, 2023
1 parent bb69991 commit 230aee4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/dev/proxyfox/pluralkt/PluralKt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object PluralKt {
private const val baseUrl = "https://api.pluralkit.me/v2/"
private val module = SerializersModule {
polymorphic(PkType::class) {
subclass(ErrorObject::class)
subclass(PkErrorMessage::class)
subclass(PkAutoProxy::class)
subclass(PkColor::class)
subclass(PkError::class)
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/dev/proxyfox/pluralkt/types/PkError.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import kotlinx.serialization.*
class PkError : PkType {
val code: Int = 0
val message: String = ""
val errors: HashMap<String, ErrorObject>? = null
val errors: HashMap<String, PkErrorMessage>? = null
@SerialName("retry_after")
val retryAfter: Int? = null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import dev.proxyfox.pluralkt.*
import kotlinx.serialization.*

@Serializable
class ErrorObject : PkType {
class PkErrorMessage : PkType {
val message: String = ""
@SerialName("max_length")
val maxLength: Int? = null
Expand Down

0 comments on commit 230aee4

Please sign in to comment.