File tree Expand file tree Collapse file tree
api/src/main/java/com/getcode/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.getcode.model
22
33import android.webkit.MimeTypeMap
44import com.codeinc.gen.user.v1.IdentityService
5+ import com.codeinc.gen.user.v1.friendshipCostOrNull
56import com.getcode.solana.keys.PublicKey
67import com.getcode.solana.keys.base58
78import com.getcode.utils.serializer.PublicKeyAsStringSerializer
@@ -55,8 +56,9 @@ data class TwitterUser(
5556 followerCount = proto.followerCount,
5657 tipAddress = tipAddress,
5758 verificationStatus = VerificationStatus .entries.getOrNull(proto.verifiedTypeValue) ? : VerificationStatus .unknown,
59+ // costOfFriendship = kotlin.runCatching { proto.friendshipCostOrNull }.getOrNull()
5860 costOfFriendship = Fiat (currency = CurrencyCode .USD , amount = 1.00 ),
59- isFriend = proto.isFriend
61+ isFriend = runCatching { proto.isFriend }.getOrNull() ? : false
6062 )
6163 }
6264 }
You can’t perform that action at this time.
0 commit comments