From 6ad1f8f98de9e66f28aefa8cd3399fc355d0d907 Mon Sep 17 00:00:00 2001 From: Yuichiro Kinoshita Date: Wed, 13 Dec 2023 15:25:15 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=B8=8D=E8=A6=81=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=81=A3=E3=81=9F=E5=87=A6=E7=90=86=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mastodon/accounts/MastodonAccountDTO.kt | 46 +------------------ 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/modules/api/src/main/java/net/pantasystem/milktea/api/mastodon/accounts/MastodonAccountDTO.kt b/modules/api/src/main/java/net/pantasystem/milktea/api/mastodon/accounts/MastodonAccountDTO.kt index 875f07a42a..e0ee6264cc 100644 --- a/modules/api/src/main/java/net/pantasystem/milktea/api/mastodon/accounts/MastodonAccountDTO.kt +++ b/modules/api/src/main/java/net/pantasystem/milktea/api/mastodon/accounts/MastodonAccountDTO.kt @@ -57,51 +57,7 @@ data class MastodonAccountDTO( @SerialName("statuses_count") val statusesCount: Long, -) { -// fun toModel(account: Account, related: User.Related? = null): User { -// return User.Detail( -// User.Id(account.accountId, this.id), -// userName = username, -// name = displayName, -// avatarUrl = avatar, -// emojis = emojis.map { -// CustomEmoji( -// name = it.shortcode, -// uri = it.url, -// url = it.url, -// category = it.category, -// ) -// }, -// host = acct.split("@").getOrNull(1) ?: account.getHost(), -// isBot = bot, -// isCat = false, -// nickname = null, -// isSameHost = acct.split("@").getOrNull(1) == null -// || acct.split("@").getOrNull(1) == account.getHost(), -// instance = null, -// avatarBlurhash = null, -// info = User.Info( -// followersCount = followersCount.toInt(), -// followingCount = followingCount.toInt(), -// notesCount = statusesCount.toInt(), -// hostLower = null, -// pinnedNoteIds = null, -// bannerUrl = header, -// url = url, -// isLocked = locked, -// birthday = null, -// fields = emptyList(), -// createdAt = createdAt, -// updatedAt = null, -// isPublicReactions = false, -// description = note, -// ffVisibility = null, -// ), -// related = related, -// badgeRoles = emptyList(), -// ) -// } -} +) @Serializable