public class MainActivityModel
{
public EventAggregator eventAggregator;
private StringObservable message = new StringObservable();
public MainActivityModel()
{
message.set("");
}
public void setEventAggregator(EventAggregator ea)
{
this.eventAggregator = ea;
}
public Command hello = new Command()
{
@Override
public void Invoke(View arg0, Object... arg1)
{
message.set("Hello MVVM!");
}
};
}