lacolaco
12/20/2012 - 4:42 AM

gistfile1.java

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!");
		}
	};	
}