Package com.restfb.types
Klasse User.Currency
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.User.Currency
- Alle implementierten Schnittstellen:
Serializable
- Umschließende Klasse:
User
Represents the Currency Graph API type.
- Seit:
- 1.6.12
- Autor:
- Mark Allen
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungThe number of Facebook Credits that equate in value to one unit ofuser_currency
.The number of units ofuser_currency
that equate in value to one Credit.The number by which a price should be divided for display inuser_currency
units.The ISO-4217-3 code for the user's preferred currency (defaulting to USD if the user hasn't set one).void
setCurrencyExchange
(BigDecimal currencyExchange) The number of Facebook Credits that equate in value to one unit ofuser_currency
.void
setCurrencyExchangeInverse
(BigDecimal currencyExchangeInverse) The number of units ofuser_currency
that equate in value to one Credit.void
setCurrencyOffset
(BigDecimal currencyOffset) The number by which a price should be divided for display inuser_currency
units.void
setUserCurrency
(String userCurrency) The ISO-4217-3 code for the user's preferred currency (defaulting to USD if the user hasn't set one).Von Klasse geerbte Methoden com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Konstruktordetails
-
Currency
public Currency()
-
-
Methodendetails
-
getUserCurrency
The ISO-4217-3 code for the user's preferred currency (defaulting to USD if the user hasn't set one).- Gibt zurück:
- The ISO-4217-3 code for the user's preferred currency (defaulting to USD if the user hasn't set one).
-
setUserCurrency
The ISO-4217-3 code for the user's preferred currency (defaulting to USD if the user hasn't set one). -
getCurrencyExchange
The number of Facebook Credits that equate in value to one unit ofuser_currency
.- Gibt zurück:
- The number of Facebook Credits that equate in value to one unit of
user_currency
.
-
setCurrencyExchange
The number of Facebook Credits that equate in value to one unit ofuser_currency
. -
getCurrencyExchangeInverse
The number of units ofuser_currency
that equate in value to one Credit.To calculate the local currency amount based on the credits price, compute
credits_price * currency_exchange_inverse
.- Gibt zurück:
- The number of units of
user_currency
that equate in value to one Credit.
-
setCurrencyExchangeInverse
The number of units ofuser_currency
that equate in value to one Credit.To calculate the local currency amount based on the credits price, compute
credits_price * currency_exchange_inverse
. -
getCurrencyOffset
The number by which a price should be divided for display inuser_currency
units.For example, a price of $1.20 will be represented by the Facebook API as "120", which you should divide by the USD
currency_offset
of 100 to arrive back at 1.20.- Gibt zurück:
- The number by which a price should be divided for display in
user_currency
units.
-
setCurrencyOffset
The number by which a price should be divided for display inuser_currency
units.For example, a price of $1.20 will be represented by the Facebook API as "120", which you should divide by the USD
currency_offset
of 100 to arrive back at 1.20.
-