internal static AlertVariable[] GetVariables(SpecialMessageType type) { ArrayList vars = new ArrayList(); switch(type) { case SpecialMessageType.BatchAlert: vars.Add(new AlertVariable(Variable.End)); vars.Add(new AlertVariable(Variable.Start)); vars.Add(new AlertVariable(Variable.Text)); break; case SpecialMessageType.BatchItem: vars.Add(new AlertVariable(Variable.EventDate)); vars.Add(new AlertVariable(Variable.EventName)); vars.Add(new AlertVariable(Variable.InitiatedBy)); vars.Add(new AlertVariable(Variable.Link, true, true)); vars.Add(new AlertVariable(Variable.Link, true, false, true)); // RelLink vars.Add(new AlertVariable(Variable.Title)); vars.Add(new AlertVariable(Variable.Title, false, true, true)); // RelTitle break; case SpecialMessageType.BatchItemDeleted: vars.Add(new AlertVariable(Variable.EventDate)); vars.Add(new AlertVariable(Variable.EventName)); vars.Add(new AlertVariable(Variable.InitiatedBy)); vars.Add(new AlertVariable(Variable.Title)); break; case SpecialMessageType.BroadcastMessage: vars.Add(new AlertVariable(Variable.InitiatedBy)); vars.Add(new AlertVariable(Variable.Text)); break; case SpecialMessageType.FileDelivery: vars.Add(new AlertVariable(Variable.InitiatedBy)); break; case SpecialMessageType.ForgottenPassword: vars.Add(new AlertVariable(Variable.LogonLink, true, false)); break; case SpecialMessageType.Issue_ResponseSignature: vars.Add(new AlertVariable(Variable.Company)); vars.Add(new AlertVariable(Variable.Department)); vars.Add(new AlertVariable(Variable.Email)); vars.Add(new AlertVariable(Variable.Fax)); vars.Add(new AlertVariable(Variable.FirstName)); vars.Add(new AlertVariable(Variable.LastName)); vars.Add(new AlertVariable(Variable.Link, true, false)); vars.Add(new AlertVariable(Variable.Location)); vars.Add(new AlertVariable(Variable.Mobile)); vars.Add(new AlertVariable(Variable.Phone)); vars.Add(new AlertVariable(Variable.Position)); vars.Add(new AlertVariable(Variable.Text)); vars.Add(new AlertVariable(Variable.Ticket)); vars.Add(new AlertVariable(Variable.Title)); break; } return vars.ToArray(typeof(AlertVariable)) as AlertVariable[]; }
internal static AlertVariable[] GetVariables(SpecialMessageType type) { ArrayList vars = new ArrayList(); switch (type) { case SpecialMessageType.BatchAlert: vars.Add(new AlertVariable(Variable.End)); vars.Add(new AlertVariable(Variable.Start)); vars.Add(new AlertVariable(Variable.Text)); break; case SpecialMessageType.BatchItem: vars.Add(new AlertVariable(Variable.EventDate)); vars.Add(new AlertVariable(Variable.EventName)); vars.Add(new AlertVariable(Variable.InitiatedBy)); vars.Add(new AlertVariable(Variable.Link, true, true)); vars.Add(new AlertVariable(Variable.Link, true, false, true)); // RelLink vars.Add(new AlertVariable(Variable.Title)); vars.Add(new AlertVariable(Variable.Title, false, true, true)); // RelTitle break; case SpecialMessageType.BatchItemDeleted: vars.Add(new AlertVariable(Variable.EventDate)); vars.Add(new AlertVariable(Variable.EventName)); vars.Add(new AlertVariable(Variable.InitiatedBy)); vars.Add(new AlertVariable(Variable.Title)); break; case SpecialMessageType.BroadcastMessage: vars.Add(new AlertVariable(Variable.InitiatedBy)); vars.Add(new AlertVariable(Variable.Text)); break; case SpecialMessageType.FileDelivery: vars.Add(new AlertVariable(Variable.InitiatedBy)); break; case SpecialMessageType.ForgottenPassword: vars.Add(new AlertVariable(Variable.LogonLink, true, false)); break; case SpecialMessageType.Issue_ResponseSignature: vars.Add(new AlertVariable(Variable.Company)); vars.Add(new AlertVariable(Variable.Department)); vars.Add(new AlertVariable(Variable.Email)); vars.Add(new AlertVariable(Variable.Fax)); vars.Add(new AlertVariable(Variable.FirstName)); vars.Add(new AlertVariable(Variable.LastName)); vars.Add(new AlertVariable(Variable.Link, true, false)); vars.Add(new AlertVariable(Variable.Location)); vars.Add(new AlertVariable(Variable.Mobile)); vars.Add(new AlertVariable(Variable.Phone)); vars.Add(new AlertVariable(Variable.Position)); vars.Add(new AlertVariable(Variable.Text)); vars.Add(new AlertVariable(Variable.Ticket)); vars.Add(new AlertVariable(Variable.Title)); break; } return(vars.ToArray(typeof(AlertVariable)) as AlertVariable[]); }