Bloom.Edit.AudioRecording.TestForTooShortAndSendFailIfSo C# (CSharp) Method

TestForTooShortAndSendFailIfSo() private method

private TestForTooShortAndSendFailIfSo ( ApiRequest request ) : bool
request Bloom.Api.ApiRequest
return bool
        private bool TestForTooShortAndSendFailIfSo(ApiRequest request)
        {
            if ((DateTime.Now - _startRecording) < TimeSpan.FromSeconds(0.5))
            {
                CleanUpAfterPressTooShort();
                var msg = LocalizationManager.GetString("EditTab.Toolbox.TalkingBook.PleaseHoldMessage",
                    "Please hold the button down until you have finished recording",
                    "Appears when the speak/record button is pressed very briefly");
                request.Failed(msg);
                return true;
            }
            return false;
        }