Mercurial > altnet-hispano
comparison 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 |
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 ProponerTwitterWriter : ITwitterWriter | |
6 { | |
7 public string Write(Track track) | |
8 { | |
9 var sust = track.Evento.Tipo == TipoEvento.Van ? "una nueva: VAN" : "un nuevo " + track.Evento.Tipo; | |
10 return "Se ha propuesto " + sust; | |
11 } | |
12 } | |
13 } |