/Docs/07-Implementacion/Source/trunk/EDUAR_actual/EDUAR/EDUAR_DataTransferObject/Entities/Package Comunicaciones/Mensaje.cs

http://blpm.googlecode.com/ · C# · 68 lines · 40 code · 8 blank · 20 comment · 0 complexity · ab6da75e01f9a6ae56aabd3262773919 MD5 · raw file

  1. ///////////////////////////////////////////////////////////
  2. // Mensaje.cs
  3. // Implementation of the Class Mensaje
  4. // Generated by Enterprise Architect
  5. // Created on: 20-jun-2011 16:21:50
  6. // Original author: Pablo Nicoliello
  7. ///////////////////////////////////////////////////////////
  8. using System;
  9. using System.Collections.Generic;
  10. using EDUAR_Entities.Shared;
  11. using EDUAR_Entities.Security;
  12. namespace EDUAR_Entities
  13. {
  14. [Serializable]
  15. public class Mensaje : DTBase
  16. {
  17. public int idMensaje { get; set; }
  18. public int idMensajeDestinatario { get; set; }
  19. public List<Persona> ListaDestinatarios { get; set; }
  20. public DateTime fechaEnvio { get; set; }
  21. public DateTime horaEnvio { get; set; }
  22. public Persona remitente { get; set; }
  23. public string listaIDMensaje { get; set; }
  24. public CursoCicloLectivo cursoCicloLectivo { get; set; }
  25. public string nombreDestinatario { get; set; }
  26. public string nombreRemitente { get; set; }
  27. /// <summary>
  28. /// Este atributo SOLO SE UTILIZA PARA RECUPERAR LOS MENSAJES EN LOS QUE UN USUARIO APARECE COMO DESTINATARIO!!!
  29. /// </summary>
  30. /// <value>
  31. /// The destinatario.
  32. /// </value>
  33. public Persona destinatario { get; set; }
  34. public string asuntoMensaje { get; set; }
  35. public string textoMensaje { get; set; }
  36. public bool activo { get; set; }
  37. /// <summary>
  38. /// Se utiliza para recuperar la lista de mensajes de un usuario e indicar si ha sido leido o no.
  39. /// Gets or sets a value indicating whether this <see cref="Mensaje"/> is leido.
  40. /// </summary>
  41. /// <value>
  42. /// <c>true</c> if leido; otherwise, <c>false</c>.
  43. /// </value>
  44. public bool leido { get; set; }
  45. public Mensaje()
  46. {
  47. ListaDestinatarios = new List<Persona>();
  48. remitente = new Persona();
  49. destinatario = new Persona();
  50. activo = true;
  51. cursoCicloLectivo = new CursoCicloLectivo();
  52. }
  53. ~Mensaje()
  54. {
  55. }
  56. public virtual void Dispose()
  57. {
  58. }
  59. }//end Mensaje
  60. }