SenseNet.Messaging.NotificationHandler.GetEventTemplate C# (CSharp) Method

GetEventTemplate() private static method

private static GetEventTemplate ( MessageTemplate template, NotificationType notificationType ) : string
template MessageTemplate
notificationType NotificationType
return string
        private static string GetEventTemplate(MessageTemplate template, NotificationType notificationType)
        {
            switch (notificationType)
            {
                case NotificationType.Created: return template.CreatedTemplate;
                case NotificationType.MajorVersionModified: return template.MajorVersionModifiedTemplate;
                case NotificationType.MinorVersionModified: return template.MinorVersionModifiedTemplate;
                case NotificationType.CopiedFrom: return template.CopiedFromTemplate;
                case NotificationType.MovedFrom: return template.MovedFromTemplate;
                case NotificationType.MovedTo: return template.MovedToTemplate;
                case NotificationType.RenamedFrom: return template.RenamedFromTemplate;
                case NotificationType.RenamedTo: return template.RenamedToTemplate;
                case NotificationType.Deleted: return template.DeletedTemplate;
                case NotificationType.Restored: return template.RestoredTemplate;
                default: throw new NotImplementedException("Unknown NotificationType: " + notificationType);
            }
        }
        private static string ReplaceParameters(string template, Subscription subscription)