コード例 #1
0
    public async ValueTask <ActionResult <TypingReport> > GetTypingReport(string?language = "en", TextGenerationType textGenerationType = TextGenerationType.GeneratedStardardText)
    {
        if (language == null)
        {
            language = "en";
        }

        var report = await _typingReportGenerator.GenerateReportAsync(ProfileId, language, textGenerationType);

        return(Ok(report));
    }