Package 

Class Price

  • All Implemented Interfaces:
    android.os.Parcelable , org.readium.r2.shared.JSONable

    
    public final class Price
     implements JSONable, Parcelable
                        

    The price of a publication in an OPDS link.

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Price.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      Price(String currency, Double value)
    • Method Summary

      Modifier and Type Method Description
      final String getCurrency()
      final Double getValue()
      JSONObject toJSON() Serializes an Price to its JSON representation.
      • Methods inherited from class org.readium.r2.shared.opds.Price

        describeContents, writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Price

        Price(String currency, Double value)
        Parameters:
        currency - Currency for the price, eg.
        value - Price value, should only be used for display purposes, because of precision issues inherent with Double and the JSON parsing.