package com.amsen.par.cewlrency.view;

import com.amsen.par.cewlrency.base.rx.event.Event;

/**
 * @author Pär Amsen 2016
 */
public class CurrencyEvent<E> implements Event {
    public enum Type {
        CHANGE_CURRENCY_FROM, CHANGE_CURRENCY_TO, CHANGE_AMOUNT
    }

    public CurrencyEvent(E value, Type type) {
        this.value = value;
        this.type = type;
    }

    public final E value;
    public final Type type;

    @Override
    public String toString() {
        return String.format("{type: %s, value: %s}", type.name(), value.toString());
    }
}
