using Monitoring.Core.Domain.ReportManagement;

namespace Monitoring.Features.Reports;

public record CreateReportResponse(
	Guid Id,
	string Name,
	DateTime CreatedAt,
	ReportType Type
)
{
	internal static CreateReportResponse FromEntity(Report report)
	{
		return new CreateReportResponse(
			report.Id.Value,
			report.Name.Value,
			report.CreatedAt,
			report.Type
		);
	}
}