UlteriusServer.Api.Win32.Display.GetMessageForCode C# (CSharp) Method

GetMessageForCode() private static method

private static GetMessageForCode ( DISP_CHANGE code ) : string
code DISP_CHANGE
return string
        private static string GetMessageForCode(DISP_CHANGE code)
        {
            string message;
            switch (code)
            {
                case DISP_CHANGE.Successful:
                    message = "Resolution updated.";
                    break;
                case DISP_CHANGE.Restart:
                    message = "A restart is required for this resolution to take effect.";
                    break;
                case DISP_CHANGE.BadMode:
                    message = $"resolution is not valid.";
                    break;
                case DISP_CHANGE.BadDualView:
                    message = "The settings change was unsuccessful because system is DualView capable.";
                    break;
                case DISP_CHANGE.BadFlags:
                    message = "An invalid set of flags was passed in.";
                    break;
                case DISP_CHANGE.BadParam:
                    message =
                        "An invalid parameter was passed in. This can include an invalid flag or combination of flags.";
                    break;
                case DISP_CHANGE.Failed:
                    message = "Resolution failed to update.";
                    break;
                case DISP_CHANGE.NotUpdated:
                    message = "Unable to write settings to the registry.";
                    break;
                default:
                    message = "Unknown return value from ChangeDisplaySettings API.";
                    break;
            }
            return message;
        }