-
- All Implemented Interfaces:
-
android.os.Parcelable,org.readium.r2.shared.JSONable
public final class Availability implements JSONable, Parcelable
Indicated the availability of a given resource.
https://drafts.opds.io/schema/properties.schema.json
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAvailability.Statepublic classAvailability.Companion
-
Constructor Summary
Constructors Constructor Description Availability(Availability.State state, Date since, Date until)
-
Method Summary
Modifier and Type Method Description final Availability.StategetState()final DategetSince()final DategetUntil()JSONObjecttoJSON()Serializes an Availability to its JSON representation. -
-
Constructor Detail
-
Availability
Availability(Availability.State state, Date since, Date until)
- Parameters:
since- Timestamp for the previous state change.until- Timestamp for the next state change.
-
-
Method Detail
-
getState
final Availability.State getState()
-
toJSON
JSONObject toJSON()
Serializes an Availability to its JSON representation.
-
-
-
-