view Agendas/trunk/src/Agendas.Domain/Resultado.cs @ 216:8a8c35302b81

Merge
author nelopauselli
date Mon, 05 Sep 2011 20:43:32 -0300
parents 212c664db5aa
children b9850b647a4e
line wrap: on
line source

using System.Collections.Generic;

namespace AltNetHispano.Agendas.Domain
{
	public class Resultado
	{
		public Resultado(bool succeful, string message)
		{
			Succeful = succeful;
			Message = message;
		}

		public bool Succeful { get; private set; }
        public string Message { get; internal set; }
	}

	public class EventoResultado : Resultado
	{
		public EventoResultado(bool succeful, string message, IEnumerable<TrackLog> warnings)
			: base(succeful, message)
		{
			Warnings = warnings ?? new List<TrackLog>();
		}

		public IEnumerable<TrackLog> Warnings { get; set; }
	}
}