view Agendas/trunk/src/Agendas.Domain/Track.cs @ 101:9bfdd5bf3ad2

Manejo de estados de los Eventos mediante state pattern (primer version)
author jorge.rowies
date Sun, 05 Jun 2011 11:10:32 -0300
parents db4b1e2cae49
children 90ce239cfa6d
line wrap: on
line source

namespace AltNetHispano.Agendas.Domain
{
	public class Track : Identificable
	{
		protected Track()
		{
			//ctor para NHibernate
		}

		public Track(Evento evento, Accion accion)
		{
			Usuario = IdentityContext.GetUsuario();
			Evento = evento;
			Accion = accion;
		}

		public virtual Evento Evento { get; private set; }
		public virtual Accion Accion { get; private set; }
		public virtual Persona Usuario { get; private set; }
	}

	public enum Accion
	{
		Proponer = 1,
		Agendar = 2,
		Modificar = 3,
		CambiarTitulo = 4,
		Publicar = 5,
		Confirmar = 6
	}

}