ExpiredTime

ExpiredTime list of available expiration time

Constructors

Link copied to clipboard
private constructor(timeValue: Int, gap: Long)
Constructor to init the ExpiredTime class

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
val gap: Long
gap the temporal gap value used to calculated if the link has been expired
Link copied to clipboard
timeValue temporal value of the expiration

Functions

Link copied to clipboard

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. This method may be used to iterate over the constants.