MomentsUserPayload

data class MomentsUserPayload(id: String, username: String, avatarUrl: String, followings: List<String>, creatorTags: List<String>?, consumerTags: List<String>?, expirationTime: Int)

Represents a Moments User Payload model

Constructors

MomentsUserPayload
Link copied to clipboard
fun MomentsUserPayload(id: String, username: String, avatarUrl: String, followings: List<String>, creatorTags: List<String>?, consumerTags: List<String>?, expirationTime: Int)

Functions

encryptUserPayload
Link copied to clipboard
fun encryptUserPayload(secretKey: String, initializationVector: String): String?

User payload encryption helper

Properties

avatarUrl
Link copied to clipboard
val avatarUrl: String

the url of the avatar of the user

consumerTags
Link copied to clipboard
val consumerTags: List<String>?

the list of tags for consumers

creatorTags
Link copied to clipboard
val creatorTags: List<String>?

the list of tags for creators

expirationTime
Link copied to clipboard
val expirationTime: Int

the expiration time of payload in milliseconds

followings
Link copied to clipboard
val followings: List<String>

the list of users the the user is following

id
Link copied to clipboard
val id: String

the id of the user

username
Link copied to clipboard
val username: String

the username of the user