-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathOrganizationReportResponseModel.cs
More file actions
36 lines (32 loc) · 1.28 KB
/
OrganizationReportResponseModel.cs
File metadata and controls
36 lines (32 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using Bit.Core.Dirt.Entities;
using Bit.Core.Dirt.Models.Data;
namespace Bit.Api.Dirt.Models.Response;
public class OrganizationReportResponseModel
{
public Guid Id { get; set; }
public Guid OrganizationId { get; set; }
public string? ReportData { get; set; }
public string? ContentEncryptionKey { get; set; }
public string? SummaryData { get; set; }
public string? ApplicationData { get; set; }
public ReportFile? ReportFile { get; set; }
public string? ReportFileDownloadUrl { get; set; }
public DateTime? CreationDate { get; set; }
public DateTime? RevisionDate { get; set; }
public OrganizationReportResponseModel(OrganizationReport organizationReport)
{
if (organizationReport == null)
{
return;
}
Id = organizationReport.Id;
OrganizationId = organizationReport.OrganizationId;
ReportData = organizationReport.ReportData;
ContentEncryptionKey = organizationReport.ContentEncryptionKey;
SummaryData = organizationReport.SummaryData;
ApplicationData = organizationReport.ApplicationData;
ReportFile = organizationReport.GetReportFile();
CreationDate = organizationReport.CreationDate;
RevisionDate = organizationReport.RevisionDate;
}
}