NZBDash.Services.Monitor.Notification.Notifier.ConvertEvent C# (CSharp) Method

ConvertEvent() private method

private ConvertEvent ( AlertTypeDto type ) : string
type AlertTypeDto
return string
        private string ConvertEvent(AlertTypeDto type)
        {
            switch (type)
            {
                case AlertTypeDto.Cpu:
                    return EventName.CpuEvent;
                case AlertTypeDto.Network:
                    return EventName.NetworkEvent;
                case AlertTypeDto.Hdd:
                    return EventName.HddSpaceEvent;
                default:
                    throw new ArgumentOutOfRangeException(nameof(type), type, null);
            }
        }