Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Twitter/Writers/AgendarTwitterWriter.cs @ 123:f8568f01da4d
Mejorando los mensajes en Twitter
author | nelopauselli |
---|---|
date | Tue, 28 Jun 2011 20:53:30 -0300 |
parents | 17531db40d4e |
children | 2d02adb79322 |
comparison
equal
deleted
inserted
replaced
122:17531db40d4e | 123:f8568f01da4d |
---|---|
1 using AltNetHispano.Agendas.Domain; | 1 using System; |
2 using AltNetHispano.Agendas.Domain; | |
2 | 3 |
3 namespace AltNetHispano.Agendas.Twitter.Writers | 4 namespace AltNetHispano.Agendas.Twitter.Writers |
4 { | 5 { |
5 public class AgendarTwitterWriter : ITwitterWriter | 6 public class AgendarTwitterWriter : ITwitterWriter |
6 { | 7 { |
7 public string Write(Track track) | 8 public string Write(Track track) |
8 { | 9 { |
9 var body = "Se ha agendando el evento" + track.Evento.Titulo; | 10 var body = "Se ha agendando el evento " + track.Evento.Titulo; |
10 if (track.Evento.Ponente.Twitter != null) | 11 |
11 body += " con @" + track.Evento.Ponente.Twitter; | 12 body += " con " + TwitterHelper.GetPonente(track.Evento.Ponente); |
13 | |
14 if (track.Evento.Fecha.HasValue) | |
15 body += " para el " + track.Evento.Fecha.Value.ToShortDateString(); | |
12 return body; | 16 return body; |
13 } | 17 } |
14 } | 18 } |
15 } | 19 } |