view Agendas/trunk/src/Agendas.Twitter/Writers/TwitterHelper.cs @ 229:33976aea7546

Varios Ponentes en calendario
author nelopauselli
date Wed, 28 Sep 2011 19:14:49 -0300
parents 9f61e8555114
children e5959f3405e0
line wrap: on
line source

using AltNetHispano.Agendas.Domain;

namespace AltNetHispano.Agendas.Twitter.Writers
{
	public static class TwitterHelper
	{
		public static string GetPonentes(Evento evento)
		{
			return evento.GetPonentesAsString(GetPonente);
		}

		private static string GetPonente(Persona ponente)
		{
			if (!string.IsNullOrWhiteSpace(ponente.Twitter))
				return "@" + ponente.Twitter;
			return ponente.Nombre;
		}

	}
}