UserProfile

@Serializable
data class UserProfile(val id: String, val username: String, val displayName: String, val avatarUrl: String? = null, val bio: String? = null, val species: String? = null, val location: String? = null, val destinations: List<String>? = null, val privacy: UserPrivacySettings)

用户资料公开信息 包含用户的公开资料信息

Parameters

id

用户 ID

username

用户名

displayName

显示名称

avatarUrl

头像 URL

bio

个人简介

species

物种

location

地理位置

destinations

目的地列表

privacy

隐私设置

Constructors

Link copied to clipboard
constructor(id: String, username: String, displayName: String, avatarUrl: String? = null, bio: String? = null, species: String? = null, location: String? = null, destinations: List<String>? = null, privacy: UserPrivacySettings)

Properties

Link copied to clipboard
@SerialName(value = "avatarUrl")
val avatarUrl: String? = null
Link copied to clipboard
@SerialName(value = "bio")
val bio: String? = null
Link copied to clipboard
@SerialName(value = "destinations")
val destinations: List<String>? = null
Link copied to clipboard
@SerialName(value = "displayName")
val displayName: String
Link copied to clipboard
@SerialName(value = "id")
val id: String
Link copied to clipboard
@SerialName(value = "location")
val location: String? = null
Link copied to clipboard
@SerialName(value = "privacy")
val privacy: UserPrivacySettings
Link copied to clipboard
@SerialName(value = "species")
val species: String? = null
Link copied to clipboard
@SerialName(value = "username")
val username: String