Expired Time

@Serializable
enum ExpiredTime(val timeValue: Int, val gap: Long) : Enum<ExpiredTime>

Constructor to init the ExpiredTime class

Parameters

timeValue

Temporal value of the expiration

gap

The temporal gap value used to calculated if the link has been expired

Constructors

Link copied to clipboard
private constructor(timeValue: Int, gap: Long)

Entries

Link copied to clipboard

NO_EXPIRATION the link not expires

Link copied to clipboard

ONE_MINUTE the link expires after one minute after creation

Link copied to clipboard

FIFTEEN_MINUTES the link expires after fifteen minutes after creation

Link copied to clipboard

THIRTY_MINUTES the link expires after thirty minutes after creation

Link copied to clipboard

ONE_HOUR the link expires after one hour after creation

Link copied to clipboard

ONE_DAY the link expires after one day after creation

Link copied to clipboard

ONE_WEEK the link expires after one week after creation

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val gap: Long
Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): ExpiredTime

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.