using System.Linq.Expressions;
using Monitoring.Core.Domain.CameraManagement;

namespace Monitoring.Features.Cameras;

public record CameraModel(
	Guid Id,
	string Name,
	string Address,
	Guid AssetId
)
{
	public static readonly Expression<Func<Camera, CameraModel>> FromEntity = entity => new CameraModel(
		entity.Id.Value,
		entity.Name.Value,
		entity.Address.Value,
		entity.AssetId.Value
	);
};
