Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Twitter/Writers/ConfirmarTwitterWriter.cs @ 122:17531db40d4e
Refactoring de la generación de mensajes en twitter
author | nelopauselli |
---|---|
date | Tue, 28 Jun 2011 19:25:22 -0300 |
parents | |
children | f8568f01da4d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Agendas/trunk/src/Agendas.Twitter/Writers/ConfirmarTwitterWriter.cs Tue Jun 28 19:25:22 2011 -0300 @@ -0,0 +1,16 @@ +using AltNetHispano.Agendas.Domain; + +namespace AltNetHispano.Agendas.Twitter.Writers +{ + public class ConfirmarTwitterWriter : ITwitterWriter + { + public string Write(Track track) + { + { + if (track.Evento.Fecha.HasValue) + return "Se confirma para el " + track.Evento.Fecha.Value.ToShortDateString() + " el evento " + track.Evento.Titulo; + return string.Empty; + } + } + } +} \ No newline at end of file