//readium-shared/org.readium.r2.shared.opds/Availability
Availability¶
[androidJvm]\ data class Availability(val state: Availability.State, val since: Date? = null, val until: Date? = null) : JSONable, Parcelable
Indicated the availability of a given resource.
https://drafts.opds.io/schema/properties.schema.json
Parameters¶
androidJvm
| since | Timestamp for the previous state change. |
| until | Timestamp for the next state change. |
Constructors¶
| Availability | [androidJvm] fun Availability(state: Availability.State, since: Date? = null, until: Date? = null) |
Types¶
| Name | Summary |
|---|---|
| Companion | [androidJvm] object Companion |
| State | [androidJvm] enum State : Enum<Availability.State> |
Functions¶
| Name | Summary |
|---|---|
| describeContents | [androidJvm] abstract fun describeContents(): Int |
| toJSON | [androidJvm] open override fun toJSON(): JSONObject Serializes an Availability to its JSON representation. |
| writeToParcel | [androidJvm] abstract fun writeToParcel(p0: Parcel, p1: Int) |
Properties¶
| Name | Summary |
|---|---|
| since | [androidJvm] val since: Date? = null |
| state | [androidJvm] val state: Availability.State |
| until | [androidJvm] val until: Date? = null |