Class Price

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Price.Type
      Valid values are rent, purchase, package or subscription.
    • Constructor Summary

      Constructors 
      Constructor Description
      Price()  
    • Constructor Detail

      • Price

        public Price()
    • Method Detail

      • getType

        public Price.Type getType()
        Valid values are "rent", "purchase", "package" or "subscription". If nothing is specified, then the media is free.
        Returns:
        the type
      • setType

        public void setType​(Price.Type type)
        Valid values are "rent", "purchase", "package" or "subscription". If nothing is specified, then the media is free.
        Parameters:
        type - the type
      • getPrice

        public Double getPrice()
        price is the price of the media object. This is an optional attribute.
        Returns:
        the price
      • setPrice

        public void setPrice​(Double price)
        price is the price of the media object. This is an optional attribute.
        Parameters:
        price - the price
      • getCurrency

        public String getCurrency()
        use ISO 4217 {@link http://en.wikipedia.org/wiki/ISO_4217} for currency codes. This is an optional attribute.
        Returns:
        ISO 4217 currency code
      • setCurrency

        public void setCurrency​(String currency)
        use ISO 4217 {@link http://en.wikipedia.org/wiki/ISO_4217} for currency codes. This is an optional attribute.
        Parameters:
        currency - ISO 4217 currency code
      • getInfo

        public URL getInfo()
        if the type is "package" or "subscription", then info is a URL pointing to package or subscription information. This is an optional attribute.
        Returns:
        info url
      • setInfo

        public void setInfo​(URL info)
        if the type is "package" or "subscription", then info is a URL pointing to package or subscription information. This is an optional attribute.
        Parameters:
        info - url
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object