Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the AlertSettings class.
 /// </summary>
 /// <param name="emailNotification">Value indicating whether
 /// user/admins will receive emails when an alert condition occurs on
 /// the system. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="notificationToServiceOwners">Value indicating whether
 /// service owners will receive emails when an alert condition occurs
 /// on the system. Applicable only if emailNotification flag is
 /// Enabled. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="alertNotificationCulture">Culture setting to be used
 /// while building alert emails. For eg: "en-US"</param>
 /// <param name="id">The identifier.</param>
 /// <param name="name">The name.</param>
 /// <param name="type">The type.</param>
 /// <param name="additionalRecipientEmailList">List of email addresses
 /// (apart from admin/coadmin of subscription) to whom the alert emails
 /// need to be sent</param>
 public AlertSettings(AlertEmailNotificationStatus emailNotification, ServiceOwnersAlertNotificationStatus notificationToServiceOwners, string alertNotificationCulture, string id = default(string), string name = default(string), string type = default(string), IList <string> additionalRecipientEmailList = default(IList <string>))
     : base(id, name, type)
 {
     EmailNotification            = emailNotification;
     NotificationToServiceOwners  = notificationToServiceOwners;
     AlertNotificationCulture     = alertNotificationCulture;
     AdditionalRecipientEmailList = additionalRecipientEmailList;
     CustomInit();
 }
Ejemplo n.º 2
0
        internal static string ToSerializedValue(this ServiceOwnersAlertNotificationStatus value)
        {
            switch (value)
            {
            case ServiceOwnersAlertNotificationStatus.Enabled:
                return("Enabled");

            case ServiceOwnersAlertNotificationStatus.Disabled:
                return("Disabled");
            }
            return(null);
        }