Availability

data class Availability(val state: Availability.State, val since: Instant? = null, val until: Instant? = null) : JSONable, Parcelable

Indicated the availability of a given resource.

https://drafts.opds.io/schema/properties.schema.json

Parameters

since

Timestamp for the previous state change.

until

Timestamp for the next state change.

Constructors

Link copied to clipboard
constructor(state: Availability.State, since: Instant? = null, until: Instant? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun toJSON(): JSONObject

Serializes an Availability to its JSON representation.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)