Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Twitter/Writers/AgendarTwitterWriter.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/AgendarTwitterWriter.cs Tue Jun 28 19:25:22 2011 -0300 @@ -0,0 +1,15 @@ +using AltNetHispano.Agendas.Domain; + +namespace AltNetHispano.Agendas.Twitter.Writers +{ + public class AgendarTwitterWriter : ITwitterWriter + { + public string Write(Track track) + { + var body = "Se ha agendando el evento" + track.Evento.Titulo; + if (track.Evento.Ponente.Twitter != null) + body += " con @" + track.Evento.Ponente.Twitter; + return body; + } + } +} \ No newline at end of file