001package org.consensusj.exchange;
002
003import javax.money.convert.ExchangeRate;
004
005/**
006 * Data object passed to `ExchangeRateObserver` on rate updates
007 * TODO: This should become a JavaMoney version of the XChange Ticker
008 * It should have the JavaMoney currency types, all the rates,
009 * An optional server timestamp and a mandatory client timestamp
010 * TODO: And it should probably be called "Update" rather than "Change" -- if the timestamp
011 * was updated but the exchange rate didn't, users still want to know.
012 */
013@Deprecated
014public class ExchangeRateChange {
015    public final ExchangeRate rate;
016    public final Long timestamp;
017
018    public ExchangeRateChange(ExchangeRate rate, long timestamp) {
019        this.rate = rate;
020        this.timestamp = timestamp;
021    }
022}