Mercurial > altnet-hispano
changeset 124:35498fb9b59b
Mejorando los mensajes en Twitter
author | nelopauselli |
---|---|
date | Tue, 28 Jun 2011 20:53:52 -0300 |
parents | f8568f01da4d |
children | 34b2f85aecab |
files | Agendas/trunk/src/Agendas.Twitter/Writers/TwitterHelper.cs |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Agendas/trunk/src/Agendas.Twitter/Writers/TwitterHelper.cs Tue Jun 28 20:53:52 2011 -0300 @@ -0,0 +1,14 @@ +using AltNetHispano.Agendas.Domain; + +namespace AltNetHispano.Agendas.Twitter.Writers +{ + public static class TwitterHelper + { + public static string GetPonente(Persona ponente) + { + if (!string.IsNullOrWhiteSpace(ponente.Twitter)) + return "@" + ponente.Twitter; + return ponente.Nombre; + } + } +} \ No newline at end of file