view Agendas/trunk/src/Agendas.Twitter/Writers/TwitterHelper.cs @ 302:11dddcc9a862 tip

Historico de Eventos, no muestra bien la Url del Patrocinador.
author juanjose.montesdeocaarbos
date Tue, 14 Aug 2012 21:54:30 -0300
parents e5959f3405e0
children
line wrap: on
line source

using AltNetHispano.Agendas.Domain;

namespace AltNetHispano.Agendas.Twitter.Writers
{
	public static class TwitterHelper
	{
		public static string GetPonentes(Evento evento)
		{
			var ponentes = evento.GetPonentesAsString(GetPonente);
			return !string.IsNullOrWhiteSpace(ponentes) ? " con " + ponentes : string.Empty;
		}

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

	}
}