FileExpiration

@Serializable
data class FileExpiration(val seconds: Int, val anchor: String = "created_at")

Expiration measured from the file creation timestamp, in seconds.

Constructors

Link copied to clipboard
constructor(seconds: Int, anchor: String = "created_at")

Properties

Link copied to clipboard
@EncodeDefault(mode = EncodeDefault.Mode.ALWAYS)
@SerialName(value = "anchor")
val anchor: String

Timestamp used to calculate expiration.

Link copied to clipboard
@SerialName(value = "seconds")
val seconds: Int

Lifetime in seconds.