Mercurial > altnet-hispano
comparison 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 |
comparison
equal
deleted
inserted
replaced
121:683cc27450ce | 122:17531db40d4e |
---|---|
1 using AltNetHispano.Agendas.Domain; | |
2 | |
3 namespace AltNetHispano.Agendas.Twitter.Writers | |
4 { | |
5 public class AgendarTwitterWriter : ITwitterWriter | |
6 { | |
7 public string Write(Track track) | |
8 { | |
9 var body = "Se ha agendando el evento" + track.Evento.Titulo; | |
10 if (track.Evento.Ponente.Twitter != null) | |
11 body += " con @" + track.Evento.Ponente.Twitter; | |
12 return body; | |
13 } | |
14 } | |
15 } |