< Summary

Information
Class: Chronicis.Api.Services.DocumentContentResult
Assembly: Chronicis.Api
File(s): /home/runner/work/chronicis/chronicis/src/Chronicis.Api/Services/DocumentContentResult.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 35
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/chronicis/chronicis/src/Chronicis.Api/Services/DocumentContentResult.cs

#LineLine coverage
 1namespace Chronicis.Api.Services;
 2
 3/// <summary>
 4/// Result containing a SAS URL for downloading a document directly from blob storage.
 5/// </summary>
 6public sealed class DocumentContentResult
 7{
 8    public DocumentContentResult(string downloadUrl, string fileName, string contentType, long fileSizeBytes)
 9    {
 10        DownloadUrl = downloadUrl;
 11        FileName = fileName;
 12        ContentType = contentType;
 13        FileSizeBytes = fileSizeBytes;
 114    }
 15
 16    /// <summary>
 17    /// Temporary SAS URL for downloading the document (valid for 15 minutes).
 18    /// </summary>
 19    public string DownloadUrl { get; }
 20
 21    /// <summary>
 22    /// Original filename of the document.
 23    /// </summary>
 24    public string FileName { get; }
 25
 26    /// <summary>
 27    /// MIME type of the document.
 28    /// </summary>
 29    public string ContentType { get; }
 30
 31    /// <summary>
 32    /// File size in bytes.
 33    /// </summary>
 34    public long FileSizeBytes { get; }
 35}