comparison Agendas/trunk/src/Agendas.Domain/Evento.cs @ 182:beeb48ddb44a

Warning con los errores que se guarden en el log del track de un evento durante una notificación (twitter, calendar, blog)
author nelopauselli
date Mon, 08 Aug 2011 21:57:10 -0300
parents 5c94b052d838
children 2d02adb79322
comparison
equal deleted inserted replaced
181:6ee05ceea8c3 182:beeb48ddb44a
1 using System; 1 using System;
2 using System.Collections.Generic; 2 using System.Collections.Generic;
3 using System.Linq;
3 4
4 namespace AltNetHispano.Agendas.Domain 5 namespace AltNetHispano.Agendas.Domain
5 { 6 {
6 public class Evento : Identificable 7 public class Evento : Identificable
7 { 8 {
12 } 13 }
13 14
14 #region Propiedades del Evento 15 #region Propiedades del Evento
15 16
16 private readonly IList<Track> _tracks; 17 private readonly IList<Track> _tracks;
17 private ICollection<Track> _newTracks = new List<Track>(); 18 private readonly ICollection<Track> _newTracks = new List<Track>();
18 19
19 /// <summary> 20 /// <summary>
20 /// Título del evento 21 /// Título del evento
21 /// </summary> 22 /// </summary>
22 public virtual string Titulo { get; private set; } 23 public virtual string Titulo { get; private set; }
205 206
206 public virtual IEnumerable<Track> GetTrackNews() 207 public virtual IEnumerable<Track> GetTrackNews()
207 { 208 {
208 return _newTracks; 209 return _newTracks;
209 } 210 }
211
212 public virtual IEnumerable<TrackLog> GetLogsNews()
213 {
214 var logs = new List<TrackLog>();
215 foreach (var track in _newTracks)
216 logs.AddRange(track.GetLogsNews());
217 return logs;
218 }
210 } 219 }
211 } 220 }