public class MainActivityModel
{
private EventAggregator eventAggregator;
public StringObservable input = new StringObservable();
public MainActivityModel()
{
}
public void setEventAggregator(EventAggregator ea)
{
this.eventAggregator = ea;
}
public Command submit = new Command()
{
@Override
public void Invoke(View arg0, Object... arg1)
{
eventAggregator.publish("toast", MainActivityModel.this, null);
}
};
}