MessageTemplate.cs 629 Bytes
Newer Older
Vaclav Svaton's avatar
Vaclav Svaton committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace HaaSMiddleware.DomainObjects.Notifications {
	[Table("MessageTemplate")]
	public class MessageTemplate : IdentifiableDbEntity {
		[Required]
		[StringLength(50)]
		public string Name { get; set; }

		[Required]
		[StringLength(200)]
		public string Description { get; set; }

		public NotificationEvent Event { get; set; }

		public virtual ICollection<MessageLocalization> Localizations { get; set; }

		public virtual ICollection<MessageTemplateParameter> Parameters { get; set; }
	}
}