From 0e956ffaef397cf317205932e2bbb2f0138d0c38 Mon Sep 17 00:00:00 2001 From: Akiomi Kamakura Date: Thu, 23 Mar 2023 06:11:07 +0900 Subject: [PATCH] Fix moshi adapters --- .../io/github/akiomik/seiun/model/app/bsky/actor/Profile.kt | 2 ++ .../java/io/github/akiomik/seiun/model/app/bsky/actor/Ref.kt | 3 +++ .../akiomik/seiun/model/app/bsky/actor/UpdateProfileInput.kt | 2 ++ .../akiomik/seiun/model/app/bsky/actor/UpdateProfileOutput.kt | 3 +++ 4 files changed, 10 insertions(+) diff --git a/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/Profile.kt b/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/Profile.kt index 4b32a37..8962cf2 100644 --- a/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/Profile.kt +++ b/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/Profile.kt @@ -1,7 +1,9 @@ package io.github.akiomik.seiun.model.app.bsky.actor +import com.squareup.moshi.JsonClass import io.github.akiomik.seiun.model.type.Image +@JsonClass(generateAdapter = true) data class Profile( val displayName: String, val description: String? = null, diff --git a/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/Ref.kt b/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/Ref.kt index b984587..3e5f1b7 100644 --- a/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/Ref.kt +++ b/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/Ref.kt @@ -1,5 +1,8 @@ package io.github.akiomik.seiun.model.app.bsky.actor +import com.squareup.moshi.JsonClass + +@JsonClass(generateAdapter = true) data class Ref( val did: String, val declarationCid: String diff --git a/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/UpdateProfileInput.kt b/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/UpdateProfileInput.kt index 6e9393e..3872a3c 100644 --- a/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/UpdateProfileInput.kt +++ b/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/UpdateProfileInput.kt @@ -1,7 +1,9 @@ package io.github.akiomik.seiun.model.app.bsky.actor +import com.squareup.moshi.JsonClass import io.github.akiomik.seiun.model.type.Image +@JsonClass(generateAdapter = true) data class UpdateProfileInput( val did: String? = null, val displayName: String? = null, diff --git a/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/UpdateProfileOutput.kt b/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/UpdateProfileOutput.kt index e093665..975a782 100644 --- a/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/UpdateProfileOutput.kt +++ b/app/src/main/java/io/github/akiomik/seiun/model/app/bsky/actor/UpdateProfileOutput.kt @@ -1,5 +1,8 @@ package io.github.akiomik.seiun.model.app.bsky.actor +import com.squareup.moshi.JsonClass + +@JsonClass(generateAdapter = true) data class UpdateProfileOutput( val uri: String, val cid: String,