ModelDtos.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. //-------------------------------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by EntitiesToDtos.v3.0 (entitiestodtos.codeplex.com).
  4. // Timestamp: 2013/02/15 - 18:47:38
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
  7. // </auto-generated>
  8. //-------------------------------------------------------------------------------------------------------
  9. using System;
  10. using System.Collections.Generic;
  11. using System.Runtime.Serialization;
  12. using System.Text;
  13. namespace Foghorn.Core
  14. {
  15. [DataContract()]
  16. public partial class SubscriberDto
  17. {
  18. [DataMember()]
  19. public Guid SubscriberId { get; set; }
  20. [DataMember()]
  21. public String SubscriberName { get; set; }
  22. [DataMember()]
  23. public Nullable<Int32> Port { get; set; }
  24. [DataMember()]
  25. public String HostName { get; set; }
  26. [DataMember()]
  27. public String Password { get; set; }
  28. [DataMember()]
  29. public List<NotificationDto> NotificationsSent { get; set; }
  30. [DataMember()]
  31. public SendingApplicationDto SendingApplication { get; set; }
  32. public SubscriberDto()
  33. {
  34. }
  35. public SubscriberDto(Guid subscriberId, String subscriberName, Nullable<Int32> port, String hostName, String password, List<NotificationDto> notificationsSent, SendingApplicationDto sendingApplication)
  36. {
  37. this.SubscriberId = subscriberId;
  38. this.SubscriberName = subscriberName;
  39. this.Port = port;
  40. this.HostName = hostName;
  41. this.Password = password;
  42. this.NotificationsSent = notificationsSent;
  43. this.SendingApplication = sendingApplication;
  44. }
  45. }
  46. [DataContract()]
  47. public partial class NotificationDto
  48. {
  49. [DataMember()]
  50. public Int32 NotificationId { get; set; }
  51. [DataMember()]
  52. public String NotificationTitle { get; set; }
  53. [DataMember()]
  54. public String NotificationMessage { get; set; }
  55. [DataMember()]
  56. public DateTime SentDateTime { get; set; }
  57. [DataMember()]
  58. public Int32 Priority { get; set; }
  59. [DataMember()]
  60. public Boolean Sticky { get; set; }
  61. [DataMember()]
  62. public List<SubscriberDto> SentToSubscribers { get; set; }
  63. [DataMember()]
  64. public NotificationTypeDto NotificationType { get; set; }
  65. public NotificationDto()
  66. {
  67. }
  68. public NotificationDto(Int32 notificationId, String notificationTitle, String notificationMessage, DateTime sentDateTime, Int32 priority, Boolean sticky, List<SubscriberDto> sentToSubscribers, NotificationTypeDto notificationType)
  69. {
  70. this.NotificationId = notificationId;
  71. this.NotificationTitle = notificationTitle;
  72. this.NotificationMessage = notificationMessage;
  73. this.SentDateTime = sentDateTime;
  74. this.Priority = priority;
  75. this.Sticky = sticky;
  76. this.SentToSubscribers = sentToSubscribers;
  77. this.NotificationType = notificationType;
  78. }
  79. }
  80. [DataContract()]
  81. public partial class SendingApplicationDto
  82. {
  83. [DataMember()]
  84. public Int32 SendingApplicationId { get; set; }
  85. [DataMember()]
  86. public String SendingApplicationName { get; set; }
  87. [DataMember()]
  88. public Byte[] SendingApplicationIcon { get; set; }
  89. [DataMember()]
  90. public List<SubscriberDto> Subscribers { get; set; }
  91. [DataMember()]
  92. public List<NotificationTypeDto> NotificationTypes { get; set; }
  93. public SendingApplicationDto()
  94. {
  95. }
  96. public SendingApplicationDto(Int32 sendingApplicationId, String sendingApplicationName, Byte[] sendingApplicationIcon, List<SubscriberDto> subscribers, List<NotificationTypeDto> notificationTypes)
  97. {
  98. this.SendingApplicationId = sendingApplicationId;
  99. this.SendingApplicationName = sendingApplicationName;
  100. this.SendingApplicationIcon = sendingApplicationIcon;
  101. this.Subscribers = subscribers;
  102. this.NotificationTypes = notificationTypes;
  103. }
  104. }
  105. [DataContract()]
  106. public partial class NotificationTypeDto
  107. {
  108. [DataMember()]
  109. public Int32 NotificationTypeId { get; set; }
  110. [DataMember()]
  111. public String NotificationTypeName { get; set; }
  112. [DataMember()]
  113. public String NotificationTypeDisplayName { get; set; }
  114. [DataMember()]
  115. public Byte[] NotificationTypeIcon { get; set; }
  116. [DataMember()]
  117. public SendingApplicationDto SendingApplication { get; set; }
  118. public NotificationTypeDto()
  119. {
  120. }
  121. public NotificationTypeDto(Int32 notificationTypeId, String notificationTypeName, String notificationTypeDisplayName, Byte[] notificationTypeIcon, SendingApplicationDto sendingApplication)
  122. {
  123. this.NotificationTypeId = notificationTypeId;
  124. this.NotificationTypeName = notificationTypeName;
  125. this.NotificationTypeDisplayName = notificationTypeDisplayName;
  126. this.NotificationTypeIcon = notificationTypeIcon;
  127. this.SendingApplication = sendingApplication;
  128. }
  129. }
  130. }