Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Twitter/Writers/AgendarTwitterWriter.cs @ 228:9f61e8555114
Nombrando a todos los ponentes en los twitter y partiendo los mensajes que superan el máximo permitido
author | nelopauselli |
---|---|
date | Wed, 28 Sep 2011 18:51:53 -0300 |
parents | 2d02adb79322 |
children | 33976aea7546 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Twitter/Writers/AgendarTwitterWriter.cs Wed Sep 28 08:57:34 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Twitter/Writers/AgendarTwitterWriter.cs Wed Sep 28 18:51:53 2011 -0300 @@ -1,19 +1,22 @@ -using System; -using AltNetHispano.Agendas.Domain; +using AltNetHispano.Agendas.Domain; namespace AltNetHispano.Agendas.Twitter.Writers { public class AgendarTwitterWriter : ITwitterWriter { - public string Write(Track track) + public string[] Write(Track track) { - var body = "Se ha agendando el evento " + track.Evento.Titulo; - - body += " con " + TwitterHelper.GetPonente(track.Evento.Ponente); + return new[] + { + "Se ha agendando el evento " + track.Evento.Titulo, + " con " + TwitterHelper.GetPonentes(track.Evento.Ponentes), + track.Evento.FechaInicio.HasValue + ? " para el " + track.Evento.FechaInicio.Value.ToShortDateString() + : string.Empty, + " por http://snipr.com/virtualaltnet" + }; - if (track.Evento.FechaInicio.HasValue) - body += " para el " + track.Evento.FechaInicio.Value.ToShortDateString(); - return body; + } } } \ No newline at end of file