internal static string ToSerializedValue(this NotificationStageName value) { switch (value) { case NotificationStageName.DevicePrepared: return("DevicePrepared"); case NotificationStageName.Dispatched: return("Dispatched"); case NotificationStageName.Delivered: return("Delivered"); case NotificationStageName.PickedUp: return("PickedUp"); case NotificationStageName.AtAzureDC: return("AtAzureDC"); case NotificationStageName.DataCopy: return("DataCopy"); } return(null); }
/// <summary> /// Initializes a new instance of the NotificationPreference class. /// </summary> /// <param name="stageName">Name of the stage. Possible values include: /// 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', /// 'AtAzureDC', 'DataCopy'</param> /// <param name="sendNotification">Notification is required or /// not.</param> public NotificationPreference(NotificationStageName stageName, bool sendNotification) { StageName = stageName; SendNotification = sendNotification; CustomInit(); }