view Agendas/trunk/src/Agendas.Blog/Impl/PostWriterFactory.cs @ 107:1ee5711256db

Utilizando Twitterizer en adapter a Twitter
author Nelo@Kenia.neluz.int
date Tue, 07 Jun 2011 21:03:56 -0300
parents a300394dbabe
children 3027c64344bd
line wrap: on
line source

using AltNetHispano.Agendas.Domain;

namespace Agendas.Blog.Impl
{
  public class PostWriterFactory : IPostWriterFactory
  {
    public IPostWriter GetPostWriter(Accion accion)
    {
      switch (accion)
      {
        case Accion.Agendar:
          return new AgendarReunionPostWriter();
        case Accion.Publicar:
          return new PublicarReunionPostWriter();
        default:
          return new NullObjectPostWriter();
      }
    }
  }
}