Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Blog/Impl/PostWriter.cs @ 65:ebce59b45b50
Agregado de version inicial del publicador para el blog
author | ROWIES@ardejorxp.inworx.corp |
---|---|
date | Tue, 17 May 2011 18:04:56 -0300 |
parents | |
children | c7264bfc4b71 |
comparison
equal
deleted
inserted
replaced
62:c40b97bbed01 | 65:ebce59b45b50 |
---|---|
1 using System; | |
2 using AltNetHispano.Agendas.Domain; | |
3 | |
4 namespace Agendas.Blog.Impl | |
5 { | |
6 public abstract class PostWriter : IPostWriter | |
7 { | |
8 public virtual void WritePost(Evento evento) | |
9 { | |
10 var title = GetTitle(evento); | |
11 var body = GetBody(evento); | |
12 this.ExecuteService(title, body); | |
13 } | |
14 | |
15 protected abstract string GetBody(Evento evento); | |
16 | |
17 protected abstract string GetTitle(Evento evento); | |
18 | |
19 protected string GetNombreUsuario(Evento evento) | |
20 { | |
21 return string.Empty; | |
22 //return evento.Tracks.Single(t => t.Accion == Accion.Realizar).Usuario; TODO (property Usuario debe ser publica) | |
23 } | |
24 | |
25 protected void ExecuteService(string title, string body) | |
26 { | |
27 //TODO: invocar al web service | |
28 throw new NotImplementedException(); | |
29 } | |
30 } | |
31 } |