Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Twitter/Writers/ProponerTwitterWriter.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/ProponerTwitterWriter.cs Tue Jun 28 19:25:22 2011 -0300 @@ -0,0 +1,13 @@ +using AltNetHispano.Agendas.Domain; + +namespace AltNetHispano.Agendas.Twitter.Writers +{ + public class ProponerTwitterWriter : ITwitterWriter + { + public string Write(Track track) + { + var sust = track.Evento.Tipo == TipoEvento.Van ? "una nueva: VAN" : "un nuevo " + track.Evento.Tipo; + return "Se ha propuesto " + sust; + } + } +} \ No newline at end of file